首页 > 关于php 执行后 File not found.

关于php 执行后 File not found.

我用的是 centos6.0

php 和 php-fpm 是通过yum 安装的, 然后nginx配置为

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;
    }

不知道为什么访问php文件返回 file not found , 不知道是不是 fpm里有什么配置需要启动才能解析Php文件,麻烦大家指点下谢谢


留意到你的文件放在root的家目录下,是否php-fpm有权限读取?


index.php文件设置读权限

【热门文章】
【热门文章】