when i hit index page instead of error messages I'm just getting a blank page. Is there any way to show PHP error messages instead? It's very hard to debug when I get no feedback. My environment is linux. PHP
You have your answer in this post
Basically you have to add this 2 lines at the beginning of the file
error_reporting(-1);
ini_set('display_errors', 'On');
there are more than one way to show errors in php scripts in linux..
first, in your index.php file, insert this codes:
error_reporting(E_ALL);
ini_set('display_errors', 1);
this enables displaying errors and warning from your browser..
or second, open php.ini
file located at /etc/php5/apache2/php.ini
and edit the line
display_errors = Off
to
display_errors = On
and restart apache2
sudo /etc/init.d/apache2 restart
NOTE: the first method only enables error message on the current file while the second method globally enables error messages to all php scripts..