Arthur Guiot Arthur Guiot - 1 month ago 6
Apache Configuration Question

PHP doesn't display errors on MAMP

I'm using the basic MAMP on Mac, and PHP doesn't display errors, I already changed PHP and Apache configuration but still, can someone help me?

Answer

First of all make sure that you are editing the right file. MAMP usually creates several php.ini files. Call phpinfo() and check the path to the correct php.ini.

In your php.ini you need to set the following:

display_errors = on
error_reporting = E_ALL

Don't forget to restart Apache after the changes.