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 Build a Simple PHP Application Getting Started with PHP Install PHP on Windows 7

When I open the WebStart page in MAMP I get this error The requested URL /MAMP/ was not found on this server. Apache/2

I am taking the PHP tutorial but am unable to go to the next step as i continue to get an error. I have green lights for both Apache and MySQL servers and loaded just as was directed in the video. Any help is appreciated. Nothing online has helped with resolving this issue.

jack hamilton
jack hamilton
5,609 Points

What operating system are you on?

5 Answers

If you are on a Windows machine, then you did not install MAMP, you likely installed XAMPP. Therefore, you shouldn't be trying to go to any URL with /MAMP/ in it. Instead, you should be able to type in the URL:

http://localhost/xampp

and see your start screen. Hope this helps!

No I am on a Mac and installed MAMP. I have deleted, reinstalled, shut down my computer, looked for help elsewhere and nothing. I have my ports set at 80 for Apache and 3306 for MySQL. both green lights are on but I am still getting this error when I try to open WebStart page. The requested URL /MAMP/ was not found on this server. Apache/2.2.26 (Unix) DAV/2 Server at localhost Port 80

I just reset the ports to their defaults 8888 for Apache and 8889 for MySQL and it works like a charm. Not sure why in the video we were told to change the Apache to 80. At least it works and I may continue.

Oh okay, that's good, so I guess you're set. Just curious: before, were you using the URL...

http://localhost/MAMP/

...? Your error message suggested that you were using just /MAMP/. Guess it doesn't matter now anyway!

Actually the WebStart page opened but it still will not link to my local host. When my port was set to 80 this is the address that was used. http://localhost/MAMP/?language=English

Dunno why, then. In any case, there shouldn't be any problem using the default MAMP ports (8888 for Apache, 8889 for MySQL), which you say are working, instead of the default Apache ports, so I think you can just change the ports and continue using MAMP to develop sites locally. Good luck.

Jack, I am using OS X 10.7.5

Eric, It opens up the MAMP web page with my info but will not open my file.

Not enough info. Files need to be in your MAMP/htdocs/ folder in order to be found/opened. MAMP (really just the Apache Server) needs to be running. If both of those things are true and your file won't open, then something about the way you initially set it up might be wrong, which could explain the other issue you were having. I'd recommend just reading the online MAMP docs until you find the answers.