I'm new to PHP and the whole LAMP stack but I've managed to get it up and running on my Ubuntu 10.10 system. Everything seems to be working with the exception of error reposting in the browser which I just can't seem to get working (and which I can't work without!).
I've read a number of article and other threads which indicate that the following values should be applied in the file /etc/php5/apache2/php.ini
:
display_errors = On
display_startup_errors = On
I've restarted apache2 and even restarted my computer but for the life of me I just can't get it working. I've even tried using phpinfo()
function which reports that these settings are as I've set them so I know it's picking up the correct configuration file but nothing!
Any help would be welcome.
Look at error_reporting directive in php.ini.
If you have Local Values overriding master values, you won't change its values in php.ini take a look for those variables in a .htaccess or in the virtual-host config file.
If you edit vhost, restart apache,
$ sudo service apache2 restart
.htaccess edits don't need apache to restart
display_errors = On
/etc/init.d/apache2 restart
Use the
phpinfo();
function to see the table of settings on your browser and look for theand edit that file. Your computer can have multiple php.ini files, you want to edit the right one.
Also check
display_errors = On
,html_errors = On
anderror_reporting = E_ALL
inside that fileRestart Apache.
it's should overlap, so it turned off. Try to open in your text editor and find
display_errors
and turn it on. It works for meTry adding log_errors = Off and check the error_reporting setting whether it's set high enough.