Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.8k views
in Technique[技术] by (71.8m points)

宝塔创建网站 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"

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...