第一种 chown -R www-data /web目录
第二种 chown -R www-data /web目录/*
目前我用的是第一种,但是/var/log/nginx/error.log老是提示:
[error] 20461#0: *3 FastCGI sent in stderr: "Unable to open primary script: /usr/share/nginx/xxx/index.php (No such file or directory)" while reading response header from upstream, client: 91.16.139.115, server: www.xxx.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.xxx.com"
第二种 chown -R www-data /web目录/*
目前我用的是第一种,但是/var/log/nginx/error.log老是提示:
[error] 20461#0: *3 FastCGI sent in stderr: "Unable to open primary script: /usr/share/nginx/xxx/index.php (No such file or directory)" while reading response header from upstream, client: 91.16.139.115, server: www.xxx.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.xxx.com"