From the course: PHP for Web Designers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Configuring MAMP to show errors (Mac)

Configuring MAMP to show errors (Mac) - PHP Tutorial

From the course: PHP for Web Designers

Start my 1-month free trial

Configuring MAMP to show errors (Mac)

When developing with PHP, it's essential to display error messages. Unfortunately, by default, MAMP on a Mac turns off the display of errors. You can check this in the start screen of MAMP by clicking PHP Info and then searching with Command+F, for display_errors. And there it is, display_errors is turned off. The simple way to fix this is to use a configuration file for the Apache web server called dot htaccess. And there's a copy of the file in the exercises files folder. So let's go to the exercises files, and in the Mac only folder HT access is there. The problem is you can't see it by default in the Mac finder. Because the Mac finder hides files normally that begin with a dot or a period. There's also a file in there called config.php. And that is there to help you read the configuration once it has been changed. So what we need to do is to use a Text editor, and a very good text editor is called Text Wrangler that you can obtain free of charge from Barebones.com. If we go to…

Contents