Setting your PHP error reporting

In your virtual host open an add/edit

php_admin_value display_errors on
php_admin_value error_reporting 6143 # for all errors notice, warnings, etc
php_admin_value error_reporting 6135 #show warnings less strict

Or edit your php.ini (example in ubuntu)

sudo vim /etc/php5/apache2/php.ini

2 responses to “Setting your PHP error reporting

  1. Great tip, thanks.
    Can you suggest how to automatically email error reports?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s