好吧,所以有一些此前的发布,但没有解决方案修复我的问题。Nginx的统计()失败(13:权限被拒绝)
我有站点配置,这是只是直线上来,CSS & JS和我试图添加一个WordPress的网站。我为WordPress的网站配置如下。
#######################
server {
listen 80;
root /usr/share/nginx/threadtheatre/wordpress;
index index.php;
server_name threadtheatre.co.uk;
access_log /var/log/nginx/thread.access.log;
error_log /var/log/nginx/thread.error.log;
location/{
# try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php?q=$uri&$args;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
这是错误多数民众赞成在我的日志
"/usr/share/nginx/threadtheatre/wordpress/index.php" failed (13: Permission denied), client: 109.155.53.189, server: threadtheatre.co.uk, request: "GET/HTTP/1.1", host: "threadtheatre.co.uk"
nginx的使用nginx的用户,同样也PHP-FPM。 nginx目录及其所有子目录具有以下权限。
drwxrwxr-x. 3 root nginx 4096 Feb 8 18:23 ..
如果我浏览到threadtheatre.co.uk在网络上,我得到404
希望有人能够帮助这一点。
Lee。
正在使用什么操作系统? – givanse 2015-07-24 09:15:45