关于php 执行后 File not found.

查看:155
本文介绍了关于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有权限读取?

这篇关于关于php 执行后 File not found.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆