This guide assumes that your web hosting is running with the global setting inside Apache of
AllowOverride All and that you are using
mob_php for your PHP support (almost all servers with PHP support use this).
To enable full error reporting in PHP, the easiest thing to do is just add two lines of code to the top of the PHP file that you would like to report any issues (errors, warnings, notices, etc). Just place the following after the
<?php start tag:
error_reporting(E_ALL);
ini_set("display_errors", 1);
If you would like to enable PHP error reporting globally rather than on one specific page then you can do this via a
.htaccess file placed in the root of your web hosting. The htaccess file would need to contain the following code:
php_flag display_errors 1
php_value error_reporting 214748364