Ubuntu How to display PHP error messages

While working on Ubuntu, by default PHP error messages are disabled and while developing web application we need to enable debugging mode to better understand the error instead of blank screen.

Following are the step to solve this:

Step – 1:

Open terminal and type the following command to open the php.ini file

Step – 2:

Find the following line

and replace with following line

Step – 3:

Now restart the Apache so that the new changes will take effect, enter the following command in your terminal

now, you will be able to see PHP error messages in your PHP scripts.

Happy Coding!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.