lima-city: Webhosting, Domains und Cloud
0 Pluspunkte 0 Minuspunkte

Wie kann ich auf einem Ubuntu mit NginX Webserver PHP installieren so das ich PHP Webseiten verarbeiten kann? Ich habe php8.1-fpm installiert

sudo apt install php8.1-fpm

und in der Host Konfiguration das eingefügt

location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php8.1-fpm.sock;
}

location ~ /\.ht {
        deny all;
}

Wieso kann ich trotzdem keine PHP Seiten aufrufen?

von  

1 Antwort

1 Pluspunkt 0 Minuspunkte

Hast du den Service auch gestartet?

sudo systemctl start php8.1-fpm
von (666 Punkte)