Vote Up 0 Vote Down

ubuntu 14.04 apache errors not showing

How to enable error reporting in Ubuntu ?


Vote Up 0 Vote Down
Step 1:

Open terminal and edit the following file using command :

sudo gedit /etc/php5/apache2/php.ini

Step 2:

Search for the occurrences of the following string : "error_reporting"

Step 3:
Set error_reporting like follow :

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

This means that all errors will be displayed except the "deprecated' and "strict" messages.

Note : You should search for all occurrences of this string. You may miss the bottom lines resulting in duplication of this strings.

Step 4:

Set display_errors to on :

display_errors = On

Step 5:

Restart Apache :

sudo service apache2 restart
flag | link |

Your Answer

Login before answering

Login with facebook