Skip to content

Instantly share code, notes, and snippets.

@f-akazawa
Last active October 28, 2015 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save f-akazawa/8c50288be3c8162ef16b to your computer and use it in GitHub Desktop.
Save f-akazawa/8c50288be3c8162ef16b to your computer and use it in GitHub Desktop.
nginxとphp-fpmでphpがAccess deniedで表示されない ref: http://qiita.com/f-akazawa/items/2b92bdad4744566e01d9
yyyy/mm/dd hh:mm:ss [error] xxxxx#xxxxx: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/nginx/html/mysite/index.html (Permission denied)" while reading response header from upstream, client: 192.168.xx.xxx, server: localhost, request: "GET /mysite/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "myserver.com"
/etc/selinux/config
SELINUX=disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment