Articles in this section

How to enable PHP Slow logging on domains with PHP-FPM handler set?

kb: how-to

Question

How to enable PHP slow logging on domains with a PHP-FPM handler set?

Answer

  1. Log into Plesk
  2. 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

  3. Click 'Ok'

Note: the slowlog file can be found in /var/www/vhosts/example.com/logs/ location.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.