質問編集履歴

3

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

2017/03/08 21:18

投稿

Jun5
Jun5

スコア10

test CHANGED
File without changes
test CHANGED
@@ -182,7 +182,7 @@
182
182
 
183
183
  user = nginx
184
184
 
185
- roup = nginx
185
+ group = nginx
186
186
 
187
187
  listen = /var/run/php-fpm/php-fpm.sock
188
188
 

2

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

2017/03/08 21:18

投稿

Jun5
Jun5

スコア10

test CHANGED
File without changes
test CHANGED
@@ -533,3 +533,15 @@
533
533
 
534
534
 
535
535
  ; See /etc/php-fpm.d/*.conf
536
+
537
+
538
+
539
+ **ls -la /var/run/php-fpmの結果を追記しました。**
540
+
541
+ ls -la /var/run/php-fpm
542
+
543
+ 合計 8
544
+
545
+ drwxr-xr-x 2 root root 4096 3月 7 19:09 2017 .
546
+
547
+ 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

test CHANGED
File without changes
test CHANGED
@@ -291,3 +291,245 @@
291
291
  --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC'
292
292
 
293
293
  --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie'
294
+
295
+
296
+
297
+
298
+
299
+ /etc/php-fpm.confの内容(追記)
300
+
301
+
302
+
303
+ ;;;;;;;;;;;;;;;;;;;;;
304
+
305
+ ; FPM Configuration ;
306
+
307
+ ;;;;;;;;;;;;;;;;;;;;;
308
+
309
+
310
+
311
+ ; All relative paths in this configuration file are relative to PHP's install
312
+
313
+ ; prefix.
314
+
315
+
316
+
317
+ ; Include one or more files. If glob(3) exists, it is used to include a bunch of
318
+
319
+ ; files from a glob(3) pattern. This directive can be used everywhere in the
320
+
321
+ ; file.
322
+
323
+ include=/etc/php-fpm.d/*.conf
324
+
325
+
326
+
327
+ ;;;;;;;;;;;;;;;;;;
328
+
329
+ ; Global Options ;
330
+
331
+ ;;;;;;;;;;;;;;;;;;
332
+
333
+
334
+
335
+ [global]
336
+
337
+ ; Pid file
338
+
339
+ ; Default Value: none
340
+
341
+ pid = /var/run/php-fpm/php-fpm.pid
342
+
343
+
344
+
345
+ ; Error log file
346
+
347
+ ; If it's set to "syslog", log is sent to syslogd instead of being written
348
+
349
+ ; in a local file.
350
+
351
+ ; Default Value: /var/log/php-fpm.log
352
+
353
+ error_log = /var/log/php-fpm/error.log
354
+
355
+
356
+
357
+ ; syslog_facility is used to specify what type of program is logging the
358
+
359
+ ; message. This lets syslogd specify that messages from different facilities
360
+
361
+ ; will be handled differently.
362
+
363
+ ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON)
364
+
365
+ ; Default Value: daemon
366
+
367
+ ;syslog.facility = daemon
368
+
369
+
370
+
371
+ ; syslog_ident is prepended to every message. If you have multiple FPM
372
+
373
+ ; instances running on the same server, you can change the default value
374
+
375
+ ; which must suit common needs.
376
+
377
+ ; Default Value: php-fpm
378
+
379
+ ;syslog.ident = php-fpm
380
+
381
+ ; Log level
382
+
383
+ ; Possible Values: alert, error, warning, notice, debug
384
+
385
+ ; Default Value: notice
386
+
387
+ ;log_level = notice
388
+
389
+
390
+
391
+ ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
392
+
393
+ ; interval set by emergency_restart_interval then FPM will restart. A value
394
+
395
+ ; of '0' means 'Off'.
396
+
397
+ ; Default Value: 0
398
+
399
+ ;emergency_restart_threshold = 0
400
+
401
+
402
+
403
+ ; Interval of time used by emergency_restart_interval to determine when
404
+
405
+ ; a graceful restart will be initiated. This can be useful to work around
406
+
407
+ ; accidental corruptions in an accelerator's shared memory.
408
+
409
+ ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
410
+
411
+ ; Default Unit: seconds
412
+
413
+ ; Default Value: 0
414
+
415
+ ;emergency_restart_interval = 0
416
+
417
+
418
+
419
+ ; Time limit for child processes to wait for a reaction on signals from master.
420
+
421
+ ; Available units: s(econds), m(inutes), h(ours), or d(ays)
422
+
423
+ ; Default Unit: seconds
424
+
425
+ ; Default Value: 0
426
+
427
+ ;process_control_timeout = 0
428
+
429
+
430
+
431
+ ; The maximum number of processes FPM will fork. This has been design to control
432
+
433
+ ; the global number of processes when using dynamic PM within a lot of pools.
434
+
435
+ ; Use it with caution.
436
+
437
+ ; Note: A value of 0 indicates no limit
438
+
439
+ ; Default Value: 0
440
+
441
+ ;process.max = 128
442
+
443
+
444
+
445
+ ; Specify the nice(2) priority to apply to the master process (only if set)
446
+
447
+ ; The value can vary from -19 (highest priority) to 20 (lower priority)
448
+
449
+ ; Note: - It will only work if the FPM master process is launched as root
450
+
451
+ ; - The pool process will inherit the master process priority
452
+
453
+ ; unless it specified otherwise
454
+
455
+ ; Default Value: no set
456
+
457
+ ;process.priority = -19
458
+
459
+
460
+
461
+ ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
462
+
463
+ ; Default Value: yes
464
+
465
+ daemonize = yes
466
+
467
+
468
+
469
+ ; Set open file descriptor rlimit for the master process.
470
+
471
+ ; Default Value: system defined value
472
+
473
+ ;rlimit_files = 1024
474
+
475
+
476
+
477
+ ; Set max core size rlimit for the master process.
478
+
479
+ ; Possible Values: 'unlimited' or an integer greater or equal to 0
480
+
481
+ ; Default Value: system defined value
482
+
483
+ ;rlimit_core = 0
484
+
485
+
486
+
487
+ ; Specify the event mechanism FPM will use. The following is available:
488
+
489
+ ; - select (any POSIX os)
490
+
491
+ ; - poll (any POSIX os)
492
+
493
+ ; - epoll (linux >= 2.5.44)
494
+
495
+ ; Default Value: not set (auto detection)
496
+
497
+ ;events.mechanism = epoll
498
+
499
+
500
+
501
+ ; When FPM is build with systemd integration, specify the interval,
502
+
503
+ ; in second, between health report notification to systemd.
504
+
505
+ ; Set to 0 to disable.
506
+
507
+ ; Available Units: s(econds), m(inutes), h(ours)
508
+
509
+ ; Default Unit: seconds
510
+
511
+ ; Default value: 10
512
+
513
+ ;systemd_interval = 10
514
+
515
+
516
+
517
+ ;;;;;;;;;;;;;;;;;;;;
518
+
519
+ ; Pool Definitions ;
520
+
521
+ ;;;;;;;;;;;;;;;;;;;;
522
+
523
+
524
+
525
+ ; Multiple pools of child processes may be started with different listening
526
+
527
+ ; ports and different management options. The name of the pool will be
528
+
529
+ ; used in logs and stats. There is no limitation on the number of pools which
530
+
531
+ ; FPM can handle. Your system will tell you anyway :)
532
+
533
+
534
+
535
+ ; See /etc/php-fpm.d/*.conf