Tip: Start typing to get instant search results.
Activation of WP_DEBUG in WordPress (dedicated servers)
In WordPress, when hosted on dedicated servers, you have the ability to enable or disable WordPress DEBUG logging. However, you do not have the ability to specify which file the logging will be written to for security reasons (logging data is written to a predefined file outside of public_html/).
Locate and open the
wp-config.phpfileUsing FTP or SSH, find the
wp-config.phpfile located in the root (in thepublic_htmlfolder) of your WordPress installation.Enable WordPress Debug
Add or modify the following lines inside
wp-config.phpto enable error logging:define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );If you want to disable debugging, change the value to
falsefor all variables.The
WP_DEBUG_DISPLAYvariable, if set totrue, displays debug messages in the browser (on your website).
⚠️ Note: On dedicated servers specifically, the wp-content/debug.log file does not work. However, you will find the log in a file in the logs/ subdirectory of your home directory.