How to enable the PHP error in MAMP

How to enable the PHP error in MAMP

Step 1:

First, we need to identify which PHP version are we using. To do that go the MAMP, and click on the Preferences. After that click on the PHP section and that will display the PHP version.

Step 2:

So, we found out which PHP version are we using to develop the application. Now, move to the Applications / MAMP/ bin / PHP / php[version] i.e. PHP 7.1.x.x. / config > php.ini. Now, search for two things and they are error_reporting, and display_errors. Change display_errors = Off to On and leave error_reporting to E_ALL as default. E_ALL will report all errors. So, we don’t need to change anything on that part.

Step 3:

Restart the apache by stopping and starting the server in MAMP. Now, you can see the errors on your web page.

One Request?

I worked hard on this post to help you learn new things. It would help me a lot if you consider sharing it on social media networks. Because Sharing Is Caring.. ♥️

Sharing Is Caring:
Picture of Rupesh Dahal

Rupesh Dahal

Hi! My name is Rupesh Dahal. I'm a mid-level WordPress Developer, SEO Analyst & Web Designer from Nepal. I have been working in IT Sector for the past 3 years and I've acquired the skills and knowledge to make your project a success.

Search

Table of Contents

Leave a Comment