Home >Backend Development >PHP Tutorial >About File not found after php execution.
I am using centos6.0
php and php-fpm are installed through yum, and then nginx is configured as
<code>location ~ \.php$ { root /root/code/wordpress; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } </code>
I don’t know why accessing the php file returns file not found. I don’t know if there is any configuration in fpm that needs to be started to parse the Php file. Please give me some advice. Thank you
I am using centos6.0
php and php-fpm are installed through yum, and then nginx is configured as
<code>location ~ \.php$ { root /root/code/wordpress; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } </code>
I don’t know why accessing the php file returns file not found. I don’t know if there is any configuration in fpm that needs to be started to parse the Php file. Please give me some advice. Thank you
I noticed that your file is placed in the root home directory. Does php-fpm have permission to read it?
Set read permission for index.php file