您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

关于php 执行后 File not found.

2024/5/10 18:22:31发布32次查看
我用的是 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文件,麻烦大家指点下谢谢
回复内容: 我用的是 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文件设置读权限
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product