質問するログイン新規登録

質問編集履歴

3

追記

2015/12/12 12:33

投稿

tixure55
tixure55

スコア400

title CHANGED
File without changes
body CHANGED
@@ -59,4 +59,19 @@
59
59
 
60
60
 
61
61
  /var/log/nginx/error.log↓
62
- > FastCGI sent in stderr: "Access to the script '/usr/share/nginx/html' has been denied (se e security.limit_extensions)" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /h ello.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost:8001"
62
+ > FastCGI sent in stderr: "Access to the script '/usr/share/nginx/html' has been denied (se e security.limit_extensions)" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /h ello.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost:8001"
63
+
64
+
65
+ 追記:/etc/php5/fpm/pool.d/www.conf
66
+
67
+ ```PHP
68
+ user = www-data↲
69
+ group = www-data↲
70
+ listen = /var/run/php5-fpm.sock↲
71
+ pm = dynamic↲
72
+ pm.max_children = 5↲
73
+ pm.start_servers = 2↲
74
+ pm.min_spare_servers = 1↲
75
+ pm.max_spare_servers = 3↲
76
+
77
+ ```

2

追記

2015/12/12 12:33

投稿

tixure55
tixure55

スコア400

title CHANGED
File without changes
body CHANGED
@@ -55,4 +55,8 @@
55
55
  なお、ディストリビューションはUbuntu14.04で、php5-fpmは起動しており、実行しようとしているphpファイルの実行権限は755です。/usr/share/nginx/html上のhmtlファイルはブラウザ上で実行できております。
56
56
 
57
57
  /etc/php5/fpm/php.ini↓
58
- > gi.fix_pathinfo=0
58
+ > gi.fix_pathinfo=0
59
+
60
+
61
+ /var/log/nginx/error.log↓
62
+ > FastCGI sent in stderr: "Access to the script '/usr/share/nginx/html' has been denied (se e security.limit_extensions)" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /h ello.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost:8001"

1

追記

2015/12/11 16:09

投稿

tixure55
tixure55

スコア400

title CHANGED
File without changes
body CHANGED
File without changes