How to enable/disable debug logging in Plesk 11.5 and higher for Windows

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Created:

2016-11-16 12:53:15 UTC

Modified:

2016-12-21 19:27:31 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to enable/disable debug logging in Plesk 11.5 and higher for Windows

Symptoms

How to enable/disable debug logging in Plesk 11.5 and higher for Windows?

Resolution

  1. Copy sample config %plesk_dir%\\admin\\conf\\panel.ini.sample to %plesk_dir%\\admin\\conf\\panel.ini , unless panel.ini already exists.

  2. To enable debug logging, uncomment (remove ; semicolon at the begin of the strings) in the following lines in panel.ini :

    [debug]
    ; Enable debug mode (do not use in production environment)
    enabled = on

    [log]
    ; Log messages verbosity level (from 0 to 7)
    ; 0 - only critical errors, 7 - all including debug messages, default - 3
    filter.priority = 7

    ; Enable logging of SQL queries
    show.sql_query = on

    ; Enable logging of external utilities calls
    show.util_exec = on

    Services restart is not needed.

  3. To disable debug logging, comment the above lines in panel.ini .

  4. Log with enabled debug mode can be found in %plesk_dir%\\admin\\logs\\php_error.log file.

Some of the log messages can be hidden or shown using the following options:

    ; Enable logging of SQL queries
show.sql_query = on

; Enable logging of external utilities calls
show.util_exec = on

Additional Information

#213370609 - How to enable/disable debug logging for Plesk backend utilities on Windows

#213408889 - How to enable/disable debug logging in Plesk 11.5 and up for Linux

Have more questions? Submit a request
Please sign in to leave a comment.