kb: how-to
Question
How to enable PHP slow logging on domains with a PHP-FPM handler set?
Answer
- Log into Plesk
-
Go to Domains > example.com > PHP Settings and add the following to the Additional PHP settings section (replace example.com with actual domain name):
CONFIG_TEXT: [php-fpm-pool-settings]
slowlog = /var/www/vhosts/example.com/logs/slow.log
request_slowlog_timeout = 1s - Click 'Ok'
Note: the slowlog file can be found in /var/www/vhosts/example.com/logs/ location.
Comments
Please sign in to leave a comment.