$ sudo vi /etc/php/7.2/fpm/pool.d/www.conf ; The log file for slow requests ; Default Value: not set ; Note: slowlog is mandatory if request_slowlog_timeout is set ;slowlog = log/$pool.log.slow slowlog = /var/log/php7.2-fpm-slow.log ←●追加 ; The timeout for serving a single request after which a PHP backtrace will be ; dumped to the 'slowlog' file. A value of '0s' means 'off'. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) ; Default Value: 0 ;request_slowlog_timeout = 0 request_slowlog_timeout = 5s ←●追加 catch_workers_output = yes ←●追加
反映 // php7.2 Ubuntuの場合
$ sudo service php7.2-fpm restart $ sudo service php7.2-fpm status