Home > PHP News > Ubuntu 10.04 PHP Error Reporting is turned off.

Ubuntu 10.04 PHP Error Reporting is turned off.


Some call it a feature… but if you’re doing PHP in Ubuntu 10.04 and you get an error, you might get a blank page instead of the error message you were expecting.

The solution, assuming you are using a test server not a production server, is to turn those errors on.

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

Set display_errors = On

restart your apache server: sudo /etc/init.d/apache2 restart

Now you can see your errors and move on with your life.

Advertisements
Categories: PHP News
  1. No comments yet.
  1. No trackbacks yet.

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

%d bloggers like this: