Displaying PHP errors
Within your control panel under Website > Advanced > Developer tools > php.ini editor
create new directives:
Directive: display_errors
Value: Boolean
Boolean: On
Directive: error_reporting
Value: text
Text: -1
Logging PHP errors
In addition to the above, we can log the error by creating the new directives:
Directive: log_errors
Value: Boolean
Boolean: On
Directive: display_errors
Value: text
Text: /var/www/$website-uuid/php-error.log
(where $website-uuid is the uuid for your website)
IMPORTANT: PHP error logging must be disabled after debugging to avoid unchecked growth of the log file, which counts towards your website storage use.
Disabling PHP errors
As the above you may need to disable PHP errors, this can be done within the control panel using the same method.
Within your control panel under Website > Advanced > Developer tools > php.ini editor
create new directives:
Directive: log_errors
Value: text
Boolean: Off