NGINX bei allen PHP Files* File not found?

  • Ich habe zurzeit einen stressigen Tag, deswegen hoffe ich, dass Ihr paar antworten habt.
    Was ist z.B an meiner Config falsch? Kann jemand (falls Fehler vorhanden sind in der Config) sie eventuell bearbeiten?
    Zurzeit habe ich einen Debian Server, wobei ich mich statt für apache2 nginx entschieden habe. Ich arbeite seit kurzem mit NGINX,
    es hatte alles super geklappt, bis ich den Server neuinstallieren musste. Er ließt alle html files, die er finden kann, aber die PHP Files* nicht.
    Obwohl PHP installiert ist....

    /etc/nginx/site-aviable/default:

    Spoiler anzeigen

    server { listen 80; ## listen for ipv4
    listen [::]:80 default ipv6only=on; ## listen for ipv6
    server_name _;
    access_log /var/log/nginx/localhost.access.log;
    location / {
    root /var/www;
    index index.php index.html index.htm;
    }
    location /doc {
    root /usr/share;
    autoindex on;
    allow 127.0.0.1;
    deny all;
    }
    location /images {
    root /usr/share;
    autoindex on;
    }
    #error_page 404 /404.html;
    # redirect server error pages to the static page /50x.html
    #
    #error_page 500 502 503 504 /50x.html;
    #location = /50x.html {
    # root /var/www/nginx-default;
    #}
    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #proxy_pass http://127.0.0.1;
    #}
    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
    try_files $uri =404;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
    include fastcgi_params;
    }
    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /\.ht {
    deny all;
    }

    }

    Ich frage nur erfahrene Leute, die eventuell Ihren Fehler behoben konnten.
    Und ja, ich hatte schon gegoogelt. ;)

    Mit freundlichen Grüßen,
    Meikel

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!