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 trialJason James
14,947 PointsMAMP issue
Hello. I've been stuck on getting MAMP to work on my Mac. I'm not sure what to do here. But I've tried some different port settings. When I click Open Start Page on MAMP I get nothing showing up on my Localhost. I should see test.php. I'm looking for a solutions to this problem. I'm thinking iWeb might be the problem. Any thoughts here would be great. Thank you.
10 Answers
Jason James
14,947 PointsSorry, This is just not working. I appreciate the help. I'm just not getting the results the video is try to demonstrate with MAMP.
I get no Localhost with any files in the browser. I'm frustrated. I guess I just do this the old way.
This bites. I was looking forward to learning from the videos and doing some hands on examples.
Darn it.
Paul Graham
1,396 PointsCheck your sharing settings, make sure you have web sharing off.
Also, we really need to know more about your OS version and MAMP version to troubleshoot. MAMP versions aside from the brand new one have problems on Mavericks.
I haven't heard the name "iWeb" in a few years. I didn't even realize it was still distributed.
Jason James
14,947 PointsI'm using 10.7.5 OS. I turned off web sharing and still not seeing my test.php file show up in localhost.
Paul Graham
1,396 PointsWhen you look at the status window at the top of the screen, does it show Apache and MySQL as being started?
Jason James
14,947 PointsYes, the green indicators are good to go. It's just when I click the open start page that I don't see my Test.php link showing up.
Paul Graham
1,396 PointsI'm guessing you're talking about the "WebStart" button at the top of MAMP. If you click that, it shouldn't go to your custom site but the MAMP status and configuration screen.
Andrew Foster
18,449 PointsI had a very similar problem following the PHP track when converting the index.html file to an index.php file the page stopped displaying.
Eventually, it turned out I had made a mistake within the php coding on the page. Double check your php, for me it was because I hadn't put quotation marks around the text to be displayed i.e. the "Shirts 4 Mike". Yours might not be as specific as that but I don't think your page will display even if you have the smallest of mistakes in there...
Jason James
14,947 PointsI'll take a look at the code and see if that is where I'm hung up at. Thank you.
Jason James
14,947 PointsStill having issues with this problem. I'm at a loss here. Sorry guys.
Paul Graham
1,396 PointsShut down the servers MAMP is running. Go into your terminal and type pgrep httpd
and pgrep mysql
. Any results?
James Barnett
39,199 PointsPaul Graham - pgrep wasn't added to OS X until 10.8
source: http://apple.blogoverflow.com/2012/07/interesting-new-unix-commandsbinaries-in-os-x-mountain-lion/
Paul Graham
1,396 PointsHmm, that stinks, but you should be able to use top to view your running processes, you'll just have to sort through the noise yourself.
James Barnett
39,199 Points@Jason James -
Try running these commands in your terminal ps -aux | grep httpd and ps -aux | mysql and tell us what you get.
Paul Graham - I don't have a Mac in front of me but I think those are the commands you want.
source: http://ss64.com/osx/ps.html
Jason James
14,947 PointsOk James. I will give it a try and let you know what happened. I hope it works I feel like i'm falling behind on the Wordpress projects.
Paul Graham
1,396 PointsWell there's always VirtualBox and Linux. You can also install Apache and MySQL from source on Mac, MAMP is just a lot easier.
James Barnett
39,199 PointsUsing a TurnKey Linux Appliance with virtualbox is pretty easy, not sure if it's as easy as MAMP though.
Jason James
14,947 Pointsok I'll play around with this. Thank you for the support.
James Barnett
39,199 PointsJames Barnett
39,199 PointsJason James - If you still want some hands on experience, there's more than one way to skin a cat. You can use a VM instead of using MAMP.
Paul Graham
1,396 PointsPaul Graham
1,396 PointsDid you ever run those commands James posted to see if you're already running an Apache server?