Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: nginx "file not found" with index.php

$
0
0
Hello,

I'm not certain why you are using fcgiwrap. That is a wrapper for cgi scripts. I'm guessing that you are using php-fpm listening on 127.0.0.1:9000. Unless you are also using some actual cgi scripts (which according to your configuration should be in /usr/lib/cgi-bin), comment out "include /etc/nginx/fcgiwrap.conf; ". You don't need that and it may be setting "fastcgi_param SCRIPT_FILENAME" to an incorrect value.

Also, for maintainability and readability, change:

fastcgi_param SCRIPT_FILENAME /home/ottaviane/Sviluppo/Progetti/HTML-PHP/www.ottaviane.it/www$fastcgi_script_name;

to

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

Let's see how that goes.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>