宝塔创建网站 file not found报错

在宝塔上新建的PHP网站项目报file not fount错误。

一开始打开网站一直是403错误,我在nginx错误日志中发现:
opendir() "/www/server/nginx/proxy_cache_dir" failed (13: Permission denied)

我把nginx中的user www www; 改成user root root;
可以打开html静态的页面

但是打开.php的页面就会提示file not fount。
在网站的error.log里面发现了如下的错误:

19322#0: *34 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client:xx.xx.xxxx.xx, server: wj_admin.xujingkj.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-73.sock:", host: "xxxxx.com"

请问这个应该如何解决呀?

阅读 4.7k
1 个回答

opendir的错误把防跨站攻击关闭就好了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题