How to Enable Display of Errors in PHP

Posted on August 26, 2019 at 3:01 pm

First edit your PHP.ini file to make sure display_errors is enabled:

display_errors = on

Then if you changed this value, you’ll need to restart PHP7-FPM process:

/etc/init.d/php7.3-fpm restart

Additionally you may prepend these lines on your PHP script:

error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);

Receive updates via email

Other Posts

Updated Posts