回答編集履歴
1
IPアドレスの修正
test
CHANGED
@@ -7,7 +7,6 @@
|
|
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
|
-
|
11
10
|
|
12
11
|
下記コマンドに修正
|
13
12
|
```
|
@@ -26,7 +25,7 @@
|
|
26
25
|
|
27
26
|
phpにアクセスできないため、エラーログを確認
|
28
27
|
```
|
29
|
-
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”
|
30
29
|
```
|
31
30
|
/etc/php-fpm.d/www.confの値を変更
|
32
31
|
```
|