Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNorman Craig
14,018 PointsTurn on errors
When trying to turn on errors in MAMP, I copied and pasted the url shown in step 1. All i get is a blank page. Because of this, I cannot complete step 2. I believe this is because I had to change ports. Can anyone help me turn on errors?
2 Answers
Shawn Gregory
Courses Plus Student 40,672 PointsNorman,
You can simply use your computer's search tool to search for the php.ini file. Unless you have saved other php.ini files on your computer, the php.ini file that your computer's search finds should be the one for your MAMP installation. I personally use WAMP for my development so I don't necessarily know off the top of my head where the php.ini file is located in MAMP. Once you find the php.ini file on your computer, you can create a shortcut to that file for future use. Also, MAMP should have something on your computer's toolbar that you can click on. From there it should give you the option to access the file directly. Of course I may be wrong seeing as I use WAMP but the search tactic should work for you. Hope this helps.
Cheers!
Aleksandra Wzorek
6,076 PointsIf you want to do it step by step as it is written in teacher's notes, and you have changed the ports, you have to simply add port number to localhost (so the path would be: http://localhost:port_number_here/MAMP/index.php?language=English&page=phpinfo). At least it worked for me.
Alena Holligan
Treehouse TeacherAlena Holligan
Treehouse TeacherMake sure your "Server" is running before you try to access the page, and like Aleksandra Wzorek said, if you are using a non standard port, the path would be: http://localhost:**port_number_here**/MAMP/index.php?language=English&page=phpinfo
But, for reference, for PHP 5.6.10 which is by default what MAMP uses at the time of this video, the php.ini file is located here:
/Applications/MAMP/bin/php/php5.6.10/conf/php.ini