Hosting

  1. Home
  2. Support
  3. Hosting
  4. PHP
  5. PHP/errors

PHP/errors

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

Was this article helpful to you? Yes No
Click here for full details