1

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?

Arthur Guiot
  • 713
  • 10
  • 25

2 Answers2

2

Not an answer, but I can't comment yet. Its obvious and a stupid thing to do, but if anyone else has this issue there are lots of comments in the php.ini, make sure you are changing the actual variable definition and not just a comment!

1

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.

simon
  • 2,896
  • 1
  • 17
  • 22