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

Created:

2016-11-16 12:47:39 UTC

Modified:

2017-04-24 12:11:31 UTC

0

Was this article helpful?


Have more questions?

Submit a request

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

Applicable to:

  • Plesk for Windows

This article describes the debug logging for the Plesk backend utilities (i.e. utilities within the %plesk_bin% folder). It is also applicable for troubleshooting of the Plesk integration with a third-party application (like mail or DNS server). For all other cases, it is sufficient to enable debug logging described in the KB #213377849 .

Resolution

To enable debug logging for the Plesk backend utilities:

  1. Create (if it does not exist) the HKLM\\SOFTWARE\\Wow6432Node\\PLESK\\PSA Config\\Config\\Debug registry entry of type DWORD . Set its value to 1. You can use the regedit.exe utility or run the following command in the command-line:

    REG ADD "HKLM\\SOFTWARE\\Wow6432Node\\PLESK\\PSA Config\\Config" /v Debug /t REG_DWORD /d 1 /f

    Note: For 32-bit operating systems registry entry must be created within the HKLM\\SOFTWARE\\PLESK\\PSA Config\\Config key.

  2. Debug information is start logging immediately in the Event Viewer > Applications and Services Logs > Plesk and into the %plesk_dir%\\admin\\logs\\plesklog_debugYYYYmmdd.log file, where YYYYmmdd represents current day of the year.

Note: It is strongly recommended to switch off debug logging once it is not necessary as it may slow down your server performance and consume a lot of diskspace.

To disable logging for the Plesk backend utilities:

  1. Set the HKLM\\SOFTWARE\\PLESK\\PSA Config\\Config\\Debug registry entry value to 0 or just remove it. Command-line examples below:

    • To switch off:

      REG ADD "HKLM\\SOFTWARE\\Wow6432Node\\PLESK\\PSA Config\\Config" /v Debug /t REG_DWORD /d 0 /f
    • To delete entry:

      REG DELETE "HKLM\\SOFTWARE\\Wow6432Node\\PLESK\\PSA Config\\Config" /v Debug /f
  2. Clean the logs to save diskspace:

    • Event Viewer > Applications and Services Logs > Plesk > Clear Log...

    • Remove the %plesk_dir%\\admin\\logs\\plesklog_debug*.log files:

      DEL /F /Q "%plesk_dir%\\admin\\logs\\plesklog_debug*.log"
Have more questions? Submit a request
Please sign in to leave a comment.