skiabox
skiabox

Reputation: 3507

How to make Apache server to respect new php.ini values after restarting it?

I am trying to add error reporting to my php installation by adding the following line to the php.ini:

display_errors = On

Then I restart Apache server using the command:

sudo apachectl restart

Finally when I am running a phpinfo() function to see php installation details, I get the report that display_errors is Off.

Any ideas on what am I missing here?
Thank you.

Upvotes: 0

Views: 201

Answers (1)

Paul
Paul

Reputation: 84

That is strange. Are you certain the changes to /etc/php.ini are saved?

Are there any other script running before you get to your page? It could be that errors are being turned off in one of those scripts. Also, have you checked the php.ini file to make sure display_errors only appears once?

Doesn't make sense on the surface - if you change the correct php.ini file to display_errors = on and restart Apache, error reporting should be turned on. Can you paste your script?

Upvotes: 2

Related Questions