Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem i have a simple lamp server and i want it to display php errors. (apache2) so i go into my php.ini file and error_reporting = E_ALL | E_STRICT

The web says this should do the trick but even still i get a blank page when my php file contains errors.

I have made sure i edited the right php.ini since the phpinfo(); says i use /etc/php5/apche2/php.ini i edited that file.

Do you guys have any suggestions?

share|improve this question

Error reporting can be set at many levels. In your php.ini, within apache config, or an htaccess, and also within the PHP code itself. The php.ini, set a system wide default, and over-ridden, by all the other possible locations.

After you edited the file, did you check the phpinfo() output? Was the change actually made?

Though there are also rare cases where you have an error so bad, that it actually crashes the apache or php process, these you will usually see in your Apache error log. These types of failures happen when there is a bug in PHP itself, and your code somehow manages to trigger it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.