Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 am working on a server that is running apache in CGI mode, meaning that I cannot use an .htaccess file to change the php error reporting settings, which are turned off by default (no logging or displaying of errors) , I created a php.ini file with the following commands in order to enable it:

error_reporting = E_ALL
display_errors = On
display_startup_errors = On

I created a file that calls phpinfo() in order to check if it was working correctly, and it shows the file set in the PHPRC variable. however, error_reporting and display_errors still state No Value on the phpinfo page.

How can I correct this and get error reporting (either displayed or logged to a file somewhere) working correctly?

share|improve this question
Which php.ini file you're editing? Where do you put it? – dbanck Feb 15 '12 at 20:09
Did you restart apache after the changes of php.ini ? – merlin Feb 21 '12 at 18:43

Well, I'd try to make sure it's loading the php.ini you created by checking the "loaded configuration file" on the phpinfo() output.

If it's not loading the one you want, you can specify its location. Take a look at this link:

Hope this helps.

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.