質問編集履歴
9
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,33 +6,7 @@
|
|
6
6
|
|
7
7
|
```
|
8
8
|
|
9
|
-
php-fpm.service - The PHP FastCGI Process Manager
|
10
|
-
|
11
|
-
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
|
12
|
-
|
13
|
-
Active: failed (Result: exit-code) since Sat 2020-06-06 09:57:18 UTC; 7s ago
|
14
|
-
|
15
|
-
Process: 9787 ExecStart=/usr/sbin/php-fpm --nodaemonize (code=exited, status=78)
|
16
|
-
|
17
|
-
Main PID: 9787 (code=exited, status=78)
|
18
|
-
|
19
|
-
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Starting The PHP FastCGI Process Manager...
|
20
|
-
|
21
|
-
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal php-fpm[9787]: [06-Jun-2020 09:57:18] ALERT: [pool www] user has not been defined
|
22
|
-
|
23
|
-
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal php-fpm[9787]: [06-Jun-2020 09:57:18] ERROR: failed to post process the configuration
|
24
|
-
|
25
|
-
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal php-fpm[9787]: [06-Jun-2020 09:57:18] ERROR: FPM initialization failed
|
26
|
-
|
27
|
-
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a
|
28
|
-
|
29
|
-
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Failed to start The PHP FastCGI Process Manager.
|
30
|
-
|
31
|
-
J
|
9
|
+
Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.
|
32
|
-
|
33
|
-
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: php-fpm.service failed.
|
34
|
-
|
35
|
-
|
36
10
|
|
37
11
|
```
|
38
12
|
|
@@ -40,9 +14,9 @@
|
|
40
14
|
|
41
15
|
「sudo systemctl status php-fpm.service」を実行した際の結果は下記の通りです。
|
42
16
|
|
17
|
+
```
|
43
18
|
|
44
|
-
|
45
|
-
|
19
|
+
php-fpm.service - The PHP FastCGI Process Manager
|
46
20
|
|
47
21
|
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
|
48
22
|
|
@@ -68,7 +42,7 @@
|
|
68
42
|
|
69
43
|
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: php-fpm.service failed.
|
70
44
|
|
71
|
-
|
45
|
+
```
|
72
46
|
|
73
47
|
PHPの起動方法に関するアドバイスを頂けましたら幸いです。
|
74
48
|
|
8
本文修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,11 +46,27 @@
|
|
46
46
|
|
47
47
|
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
|
48
48
|
|
49
|
-
Active: failed (Result: exit-code) since Sat 2020-06-06 0
|
49
|
+
Active: failed (Result: exit-code) since Sat 2020-06-06 09:57:18 UTC; 7min ago
|
50
50
|
|
51
|
-
Process: 9
|
51
|
+
Process: 9787 ExecStart=/usr/sbin/php-fpm --nodaemonize (code=exited, status=78)
|
52
52
|
|
53
|
-
Main PID: 9
|
53
|
+
Main PID: 9787 (code=exited, status=78)
|
54
|
+
|
55
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Starting The PHP FastCGI Process Manager...
|
56
|
+
|
57
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal php-fpm[9787]: [06-Jun-2020 09:57:18] ALERT: [pool www] user has not been defined
|
58
|
+
|
59
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal php-fpm[9787]: [06-Jun-2020 09:57:18] ERROR: failed to post process the configuration
|
60
|
+
|
61
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal php-fpm[9787]: [06-Jun-2020 09:57:18] ERROR: FPM initialization failed
|
62
|
+
|
63
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a
|
64
|
+
|
65
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Failed to start The PHP FastCGI Process Manager.
|
66
|
+
|
67
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Unit php-fpm.service entered failed state.
|
68
|
+
|
69
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: php-fpm.service failed.
|
54
70
|
|
55
71
|
|
56
72
|
|
7
本文修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,10 +1,40 @@
|
|
1
1
|
[こちら](https://note.com/hiroki_hachisuka/n/nc1d5342c3a9b)を参考にPHPの起動を試みたのですが、失敗してしまいました。
|
2
2
|
|
3
|
-
|
3
|
+
「sudo systemctl restart php-fpm」を実行した際のエラーは下記の内容です
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
+
```
|
8
|
+
|
9
|
+
php-fpm.service - The PHP FastCGI Process Manager
|
10
|
+
|
11
|
+
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
|
12
|
+
|
13
|
+
Active: failed (Result: exit-code) since Sat 2020-06-06 09:57:18 UTC; 7s ago
|
14
|
+
|
15
|
+
Process: 9787 ExecStart=/usr/sbin/php-fpm --nodaemonize (code=exited, status=78)
|
16
|
+
|
17
|
+
Main PID: 9787 (code=exited, status=78)
|
18
|
+
|
19
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Starting The PHP FastCGI Process Manager...
|
20
|
+
|
21
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal php-fpm[9787]: [06-Jun-2020 09:57:18] ALERT: [pool www] user has not been defined
|
22
|
+
|
23
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal php-fpm[9787]: [06-Jun-2020 09:57:18] ERROR: failed to post process the configuration
|
24
|
+
|
25
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal php-fpm[9787]: [06-Jun-2020 09:57:18] ERROR: FPM initialization failed
|
26
|
+
|
7
|
-
|
27
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a
|
28
|
+
|
29
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Failed to start The PHP FastCGI Process Manager.
|
30
|
+
|
31
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Unit php-fpm.service entered failed state.
|
32
|
+
|
33
|
+
Jun 06 09:57:18 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: php-fpm.service failed.
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
```
|
8
38
|
|
9
39
|
|
10
40
|
|
@@ -36,7 +66,9 @@
|
|
36
66
|
|
37
67
|
|
38
68
|
|
69
|
+
> h-4.2$ sudo journalctl -xe
|
70
|
+
|
39
|
-
|
71
|
+
Jun 06 09:57:37 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Created slice User Slice of root.
|
40
72
|
|
41
73
|
-- Subject: Unit user-0.slice has finished start-up
|
42
74
|
|
@@ -52,7 +84,7 @@
|
|
52
84
|
|
53
85
|
-- The start-up result is done.
|
54
86
|
|
55
|
-
Jun 06 09:
|
87
|
+
Jun 06 09:57:37 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Starting User Slice of root.
|
56
88
|
|
57
89
|
-- Subject: Unit user-0.slice has begun start-up
|
58
90
|
|
@@ -64,9 +96,25 @@
|
|
64
96
|
|
65
97
|
-- Unit user-0.slice has begun starting up.
|
66
98
|
|
67
|
-
Jun 06 09:
|
99
|
+
Jun 06 09:57:37 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Started Session c17 of user root.
|
68
100
|
|
101
|
+
-- Subject: Unit session-c17.scope has finished start-up
|
102
|
+
|
103
|
+
-- Defined-By: systemd
|
104
|
+
|
105
|
+
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
|
106
|
+
|
107
|
+
--
|
108
|
+
|
109
|
+
-- Unit session-c17.scope has finished starting up.
|
110
|
+
|
111
|
+
--
|
112
|
+
|
113
|
+
-- The start-up result is done.
|
114
|
+
|
115
|
+
Jun 06 09:57:37 ip-172-31-10-96.ap-northeast-1.compute.internal systemd-logind[2687]: New session c17 of user root.
|
116
|
+
|
69
|
-
-- Subject: A new session c1
|
117
|
+
-- Subject: A new session c17 has been created for user root
|
70
118
|
|
71
119
|
-- Defined-By: systemd
|
72
120
|
|
@@ -76,15 +124,15 @@
|
|
76
124
|
|
77
125
|
--
|
78
126
|
|
79
|
-
-- A new session with the ID c1
|
127
|
+
-- A new session with the ID c17 has been created for the user root.
|
80
128
|
|
81
129
|
--
|
82
130
|
|
83
|
-
-- The leading process of the session is 9
|
131
|
+
-- The leading process of the session is 9800.
|
84
132
|
|
85
|
-
Jun 06 09:
|
133
|
+
Jun 06 09:57:37 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Starting Session c17 of user root.
|
86
134
|
|
87
|
-
-- Subject: Unit session-c1
|
135
|
+
-- Subject: Unit session-c17.scope has begun start-up
|
88
136
|
|
89
137
|
-- Defined-By: systemd
|
90
138
|
|
@@ -92,24 +140,6 @@
|
|
92
140
|
|
93
141
|
--
|
94
142
|
|
95
|
-
-- Unit session-c1
|
143
|
+
-- Unit session-c17.scope has begun starting up.
|
96
144
|
|
97
|
-
--
|
98
|
-
|
99
|
-
-- The start-up result is done.
|
100
|
-
|
101
|
-
Jun 06 09:12:25 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Starting Session c14 of user root.
|
102
|
-
|
103
|
-
-- Subject: Unit session-c14.scope has begun start-up
|
104
|
-
|
105
|
-
-- Defined-By: systemd
|
106
|
-
|
107
|
-
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
|
108
|
-
|
109
|
-
--
|
110
|
-
|
111
|
-
-- Unit session-c14.scope has begun starting up.
|
112
|
-
|
113
|
-
Jun 06 09:
|
145
|
+
Jun 06 09:57:37 ip-172-31-10-96.ap-northeast-1.compute.internal sudo[9800]: pam_unix(sudo:session): session opened for user root by (uid=0)
|
114
|
-
|
115
|
-
lines 1638-1675/1675 (END)
|
6
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
|
38
38
|
|
39
|
-
> un 06 09:12:25 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Created slice User Slice of root.
|
39
|
+
> Jun 06 09:12:25 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Created slice User Slice of root.
|
40
40
|
|
41
41
|
-- Subject: Unit user-0.slice has finished start-up
|
42
42
|
|
5
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,16 +32,84 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
「journalctl -xe」の実行結果は以下になります。
|
35
|
+
「sudo journalctl -xe」の実行結果は以下になります。
|
36
36
|
|
37
37
|
|
38
38
|
|
39
|
+
> un 06 09:12:25 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Created slice User Slice of root.
|
39
40
|
|
41
|
+
-- Subject: Unit user-0.slice has finished start-up
|
40
42
|
|
41
|
-
|
43
|
+
-- Defined-By: systemd
|
42
44
|
|
43
|
-
|
45
|
+
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
|
44
46
|
|
45
|
-
|
47
|
+
--
|
46
48
|
|
49
|
+
-- Unit user-0.slice has finished starting up.
|
50
|
+
|
51
|
+
--
|
52
|
+
|
53
|
+
-- The start-up result is done.
|
54
|
+
|
55
|
+
Jun 06 09:12:25 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Starting User Slice of root.
|
56
|
+
|
57
|
+
-- Subject: Unit user-0.slice has begun start-up
|
58
|
+
|
59
|
+
-- Defined-By: systemd
|
60
|
+
|
61
|
+
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
|
62
|
+
|
63
|
+
--
|
64
|
+
|
65
|
+
-- Unit user-0.slice has begun starting up.
|
66
|
+
|
67
|
+
Jun 06 09:12:25 ip-172-31-10-96.ap-northeast-1.compute.internal systemd-logind[2687]: New session c14 of user root.
|
68
|
+
|
47
|
-
|
69
|
+
-- Subject: A new session c14 has been created for user root
|
70
|
+
|
71
|
+
-- Defined-By: systemd
|
72
|
+
|
73
|
+
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
|
74
|
+
|
75
|
+
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
|
76
|
+
|
77
|
+
--
|
78
|
+
|
79
|
+
-- A new session with the ID c14 has been created for the user root.
|
80
|
+
|
81
|
+
--
|
82
|
+
|
83
|
+
-- The leading process of the session is 9678.
|
84
|
+
|
85
|
+
Jun 06 09:12:25 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Started Session c14 of user root.
|
86
|
+
|
87
|
+
-- Subject: Unit session-c14.scope has finished start-up
|
88
|
+
|
89
|
+
-- Defined-By: systemd
|
90
|
+
|
91
|
+
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
|
92
|
+
|
93
|
+
--
|
94
|
+
|
95
|
+
-- Unit session-c14.scope has finished starting up.
|
96
|
+
|
97
|
+
--
|
98
|
+
|
99
|
+
-- The start-up result is done.
|
100
|
+
|
101
|
+
Jun 06 09:12:25 ip-172-31-10-96.ap-northeast-1.compute.internal systemd[1]: Starting Session c14 of user root.
|
102
|
+
|
103
|
+
-- Subject: Unit session-c14.scope has begun start-up
|
104
|
+
|
105
|
+
-- Defined-By: systemd
|
106
|
+
|
107
|
+
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
|
108
|
+
|
109
|
+
--
|
110
|
+
|
111
|
+
-- Unit session-c14.scope has begun starting up.
|
112
|
+
|
113
|
+
Jun 06 09:12:25 ip-172-31-10-96.ap-northeast-1.compute.internal sudo[9678]: pam_unix(sudo:session): session opened for user root by (uid=0)
|
114
|
+
|
115
|
+
lines 1638-1675/1675 (END)
|
4
本文修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
> int: You are currently not seeing messages from other users and the system.
|
41
|
+
> Hint: You are currently not seeing messages from other users and the system.
|
42
42
|
|
43
43
|
Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
|
44
44
|
|
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -25,3 +25,23 @@
|
|
25
25
|
|
26
26
|
|
27
27
|
PHPの起動方法に関するアドバイスを頂けましたら幸いです。
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
**追記**
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
「journalctl -xe」の実行結果は以下になります。
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
> int: You are currently not seeing messages from other users and the system.
|
42
|
+
|
43
|
+
Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
|
44
|
+
|
45
|
+
Pass -q to turn off this notice.
|
46
|
+
|
47
|
+
No journal files were opened due to insufficient permissions.
|
2
本文修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
「systemctl status php-fpm.service」を実行した際の結果は下記の通りです。
|
11
|
+
「sudo systemctl status php-fpm.service」を実行した際の結果は下記の通りです。
|
12
12
|
|
13
13
|
|
14
14
|
|
1
本文修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
> ob for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.
|
7
|
+
> job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.
|
8
8
|
|
9
9
|
|
10
10
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
> hp-fpm.service - The PHP FastCGI Process Manager
|
15
|
+
> php-fpm.service - The PHP FastCGI Process Manager
|
16
16
|
|
17
17
|
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
|
18
18
|
|