This blog post is included for archival purposes and may contain outdated information. While it provides historical insights, we strongly recommend that you double-check the details before relying on any of the information outlined here.
MAMP is an amazing tool that should be used by any web developer who wants to minimize the hassle of setting up a web server and mySQL environment. Out of the box, it has almost everything you could possibly need; however, errors are not set to be displayed automatically. This post will show you how to enable errors.
The first thing you need to do in MAMP is find out which version of PHP MAMP is running. Head over to MAMP and click the Preferences icon and then click on the PHP tab, your version will be shown here:
Knowing what your version number is (in my case, it is 5.5.14) you must now open the file located in the following folder:
/Applications/MAMP/bin/php/php5.5.14/conf/php.ini
Please note that the 5.5.14 above needs to be replaced with your PHP version.
Once the file is open, do a quick search for the line that reads:
display_errors = Off
Change that Off to On, save your changes,and then restart your web server. It should now catch any errors in your PHP code:
Christian is a seasoned computer engineer with a rich career spanning collaborations with industry leaders such as Artinsoft (now Mobilize.net), Microsoft, HP, and Intel. As a technical evangelist and trainer, Christian honed his expertise in Costa Rica and Seattle, delivering impactful solutions and sharing his knowledge.
Now based in Sydney, Australia, Christian channels his passion into web development, leading a talented team to tackle diverse projects with innovation and precision. His commitment to crafting exceptional digital experiences reflects his deep-rooted enthusiasm for technology and problem-solving.
Comments
Comments are closed
ScorpioTek, based in Sydney, Australia, is a seasoned web development firm with a proven track record of delivering cutting-edge, user-friendly websites for a diverse range of clients.
Thank you for your interest. Please fill out this form to provide us with your contact information. We'll get back to you as soon as possible.