回答編集履歴
1
IPアドレスの修正
answer
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
NginxのPHP-FPM用confファイルを修正
|
7
7
|
```
|
8
8
|
$ sudo sed -i "s/server unix.*/server unix:/var/run/php-fpm/php-fpm.sock;/" /etc/nginx/conf.d/php-fpm.conf
|
9
|
-
```
|
9
|
+
```
|
10
10
|
|
11
11
|
下記コマンドに修正
|
12
12
|
```
|
@@ -25,7 +25,7 @@
|
|
25
25
|
|
26
26
|
phpにアクセスできないため、エラーログを確認
|
27
27
|
```
|
28
|
-
2023/04/08 14:23:02 [crit] 6262#6262: *7 connect() to unix:/var/run/php-fpm/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client:
|
28
|
+
2023/04/08 14:23:02 [crit] 6262#6262: *7 connect() to unix:/var/run/php-fpm/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: _, request: "GET /index2.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "xx.xx.xx.xx”
|
29
29
|
```
|
30
30
|
/etc/php-fpm.d/www.confの値を変更
|
31
31
|
```
|