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 trial

PHP

Jason James
Jason James
14,947 Points

MAMP 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
Jason James
14,947 Points

Sorry, 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.

James Barnett
James Barnett
39,199 Points

Jason 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.

Did you ever run those commands James posted to see if you're already running an Apache server?

Check 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
Jason James
14,947 Points

I'm using 10.7.5 OS. I turned off web sharing and still not seeing my test.php file show up in localhost.

When you look at the status window at the top of the screen, does it show Apache and MySQL as being started?

Jason James
Jason James
14,947 Points

Yes, 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.

I'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.

I 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
Jason James
14,947 Points

I'll take a look at the code and see if that is where I'm hung up at. Thank you.

Jason James
Jason James
14,947 Points

Still having issues with this problem. I'm at a loss here. Sorry guys.

Shut down the servers MAMP is running. Go into your terminal and type pgrep httpd and pgrep mysql. Any results?

Hmm, 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
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
Jason James
14,947 Points

Ok 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.

Well 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
James Barnett
39,199 Points

Using a TurnKey Linux Appliance with virtualbox is pretty easy, not sure if it's as easy as MAMP though.

Jason James
Jason James
14,947 Points

ok I'll play around with this. Thank you for the support.