Enable PHP Error Reporting in MAMP
If you use MAMP on OS X and keep getting server errors when you would normally expect to see PHP errors this is due to the fact that, for some reason, PHP error reporting is turned off by default in MAMP. To enable error reporting:
1) Open up /Applications/MAMP/bin/php/{your PHP version}/conf/php.ini
2) Find displayerrors = Off (around line 277) and change it to displayerrors = On
3) Restart MAMP
Voila! You should now see PHP errors.
Written by Gilbert Pellegrom
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Did you know?
PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#