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.
That is strange. Are you certain the changes to
/etc/php.iniare 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.inifile to make suredisplay_errorsonly appears once?Doesn’t make sense on the surface – if you change the correct
php.inifile todisplay_errors = onand restart Apache, error reporting should be turned on. Can you paste your script?