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

質問編集履歴

3

③/etc/php-fpm\.d/www\.confにおいても権限,ユーザーを以下のとおり設定しております。のroupからgroupに訂正しました。

2017/03/08 21:18

投稿

Jun5
Jun5

スコア10

title CHANGED
File without changes
body CHANGED
@@ -90,7 +90,7 @@
90
90
 
91
91
  ③/etc/php-fpm.d/www.confにおいても権限,ユーザーを以下のとおり設定しております。
92
92
  user = nginx
93
- roup = nginx
93
+ group = nginx
94
94
  listen = /var/run/php-fpm/php-fpm.sock
95
95
  listen.owner = nginx
96
96
  listen.group = nginx

2

#ls -la /var/run/php-fpmの結果を追記しました。

2017/03/08 21:18

投稿

Jun5
Jun5

スコア10

title CHANGED
File without changes
body CHANGED
@@ -265,4 +265,10 @@
265
265
  ; used in logs and stats. There is no limitation on the number of pools which
266
266
  ; FPM can handle. Your system will tell you anyway :)
267
267
 
268
- ; See /etc/php-fpm.d/*.conf
268
+ ; See /etc/php-fpm.d/*.conf
269
+
270
+ **ls -la /var/run/php-fpmの結果を追記しました。**
271
+ ls -la /var/run/php-fpm
272
+ 合計 8
273
+ drwxr-xr-x 2 root root 4096 3月 7 19:09 2017 .
274
+ drwxr-xr-x. 20 root root 4096 3月 7 19:18 2017 ..

1

/etc/php-fpm\.confの内容を追記

2017/03/08 11:11

投稿

Jun5
Jun5

スコア10

title CHANGED
File without changes
body CHANGED
@@ -144,4 +144,125 @@
144
144
  --with-stream_ssl_module
145
145
  --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
146
146
  --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC'
147
- --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie'
147
+ --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie'
148
+
149
+
150
+ /etc/php-fpm.confの内容(追記)
151
+
152
+ ;;;;;;;;;;;;;;;;;;;;;
153
+ ; FPM Configuration ;
154
+ ;;;;;;;;;;;;;;;;;;;;;
155
+
156
+ ; All relative paths in this configuration file are relative to PHP's install
157
+ ; prefix.
158
+
159
+ ; Include one or more files. If glob(3) exists, it is used to include a bunch of
160
+ ; files from a glob(3) pattern. This directive can be used everywhere in the
161
+ ; file.
162
+ include=/etc/php-fpm.d/*.conf
163
+
164
+ ;;;;;;;;;;;;;;;;;;
165
+ ; Global Options ;
166
+ ;;;;;;;;;;;;;;;;;;
167
+
168
+ [global]
169
+ ; Pid file
170
+ ; Default Value: none
171
+ pid = /var/run/php-fpm/php-fpm.pid
172
+
173
+ ; Error log file
174
+ ; If it's set to "syslog", log is sent to syslogd instead of being written
175
+ ; in a local file.
176
+ ; Default Value: /var/log/php-fpm.log
177
+ error_log = /var/log/php-fpm/error.log
178
+
179
+ ; syslog_facility is used to specify what type of program is logging the
180
+ ; message. This lets syslogd specify that messages from different facilities
181
+ ; will be handled differently.
182
+ ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON)
183
+ ; Default Value: daemon
184
+ ;syslog.facility = daemon
185
+
186
+ ; syslog_ident is prepended to every message. If you have multiple FPM
187
+ ; instances running on the same server, you can change the default value
188
+ ; which must suit common needs.
189
+ ; Default Value: php-fpm
190
+ ;syslog.ident = php-fpm
191
+ ; Log level
192
+ ; Possible Values: alert, error, warning, notice, debug
193
+ ; Default Value: notice
194
+ ;log_level = notice
195
+
196
+ ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
197
+ ; interval set by emergency_restart_interval then FPM will restart. A value
198
+ ; of '0' means 'Off'.
199
+ ; Default Value: 0
200
+ ;emergency_restart_threshold = 0
201
+
202
+ ; Interval of time used by emergency_restart_interval to determine when
203
+ ; a graceful restart will be initiated. This can be useful to work around
204
+ ; accidental corruptions in an accelerator's shared memory.
205
+ ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
206
+ ; Default Unit: seconds
207
+ ; Default Value: 0
208
+ ;emergency_restart_interval = 0
209
+
210
+ ; Time limit for child processes to wait for a reaction on signals from master.
211
+ ; Available units: s(econds), m(inutes), h(ours), or d(ays)
212
+ ; Default Unit: seconds
213
+ ; Default Value: 0
214
+ ;process_control_timeout = 0
215
+
216
+ ; The maximum number of processes FPM will fork. This has been design to control
217
+ ; the global number of processes when using dynamic PM within a lot of pools.
218
+ ; Use it with caution.
219
+ ; Note: A value of 0 indicates no limit
220
+ ; Default Value: 0
221
+ ;process.max = 128
222
+
223
+ ; Specify the nice(2) priority to apply to the master process (only if set)
224
+ ; The value can vary from -19 (highest priority) to 20 (lower priority)
225
+ ; Note: - It will only work if the FPM master process is launched as root
226
+ ; - The pool process will inherit the master process priority
227
+ ; unless it specified otherwise
228
+ ; Default Value: no set
229
+ ;process.priority = -19
230
+
231
+ ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
232
+ ; Default Value: yes
233
+ daemonize = yes
234
+
235
+ ; Set open file descriptor rlimit for the master process.
236
+ ; Default Value: system defined value
237
+ ;rlimit_files = 1024
238
+
239
+ ; Set max core size rlimit for the master process.
240
+ ; Possible Values: 'unlimited' or an integer greater or equal to 0
241
+ ; Default Value: system defined value
242
+ ;rlimit_core = 0
243
+
244
+ ; Specify the event mechanism FPM will use. The following is available:
245
+ ; - select (any POSIX os)
246
+ ; - poll (any POSIX os)
247
+ ; - epoll (linux >= 2.5.44)
248
+ ; Default Value: not set (auto detection)
249
+ ;events.mechanism = epoll
250
+
251
+ ; When FPM is build with systemd integration, specify the interval,
252
+ ; in second, between health report notification to systemd.
253
+ ; Set to 0 to disable.
254
+ ; Available Units: s(econds), m(inutes), h(ours)
255
+ ; Default Unit: seconds
256
+ ; Default value: 10
257
+ ;systemd_interval = 10
258
+
259
+ ;;;;;;;;;;;;;;;;;;;;
260
+ ; Pool Definitions ;
261
+ ;;;;;;;;;;;;;;;;;;;;
262
+
263
+ ; Multiple pools of child processes may be started with different listening
264
+ ; ports and different management options. The name of the pool will be
265
+ ; used in logs and stats. There is no limitation on the number of pools which
266
+ ; FPM can handle. Your system will tell you anyway :)
267
+
268
+ ; See /etc/php-fpm.d/*.conf