PHP error messages, logs and log files

PHP errors are shown in the browser by default and logged in the web server's log files, downloadable via the Control Panel; WordPress is managed via WP_DEBUG.

By default, our web servers display all PHP errors in the browser, as PHP's display_errors is enabled by default.

You can see any PHP errors logged in the web server's log file, under "Webserver logs" in our Control Panel.

If nothing is written to the web server's log files, it is usually either because no PHP errors occur, the error handler has been changed in the source code/CMS, or any potential problem lies elsewhere.

Web server log files

All log files the server generates for a product/domain can be found in our Control Panel. There are no internal logs that allow us to "see more" than our customers can.

The log files cannot be accessed directly from the web server's file system, but in our control panel you can download the web server's logs for closer examination.

WordPress

In WordPress, the display of errors can be controlled by the WP_DEBUG variable, which can be set in the wp-config.php file.

Article from the support category: PHP