MAMP --> Can't open my files!!!

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
yabud
Forum Newbie
Posts: 3
Joined: Thu May 24, 2007 12:23 pm

MAMP --> Can't open my files!!!

Post by yabud »

Hey everyone

I have successfully installed MAMP on my computer. I am trying to test some php pages, but I cannot do so. Originally when i was trying to "Open my start page" it would tell me that there was no file in the directory specified, although there was. So i switch the port from the Apache server port 8888 to the MySQL port of 8889 and now im getting this when i try to load the appropriate file:

http://localhost:8889/Applications/MAMP ... sions.html is the URL

and this is the error im getting

4��� 5.0.37����*0P#]*Zf�,¢��������������q(mph<0{?cXp���ÿBad handshake

Does anybody know what i need to do to fix this?? Thanks!

-Andrew
sentback
Forum Newbie
Posts: 24
Joined: Fri May 04, 2007 9:46 am

Post by sentback »

First of all: links to localhost don't work.. The site is on your local computer and we can't see it (you can put the server "online" and replace the "localhost" with the IP address and the page will be viewable to us though I don't recommend that)

The second thing is your php file extension. It has to be .php not .html if you want php to process it. As for port, I don't really know much about them but I know that if you leave them out (http://localhost/page.php) the page should work just fine. It will use the standard port and if you didn't screw with the preferences it should work.

The last thing is knowing what folder is specified to be the "www" or the root folder. I don't know how MAMP installs things but if it uses "htdocs" folder, you should change your link to something like http://localhost/admissions.php.

I hope that works but just a suggestion: at least read a tutorial about MAMP. You should understand how it works in order to use it.
yabud
Forum Newbie
Posts: 3
Joined: Thu May 24, 2007 12:23 pm

Post by yabud »

thanks.... i realized that you cant browse to it cause its my local host... i was posting it to show you what i was typing in :lol: Thank you very much though, i ended up figuring it out... most appreciateed.

-andrew
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Re: MAMP --> Can't open my files!!!

Post by timvw »

yabud wrote:Hey everyone

I have successfully installed MAMP on my computer. I am trying to test some php pages, but I cannot do so. Originally when i was trying to "Open my start page" it would tell me that there was no file in the directory specified, although there was
. So i switch the port from the Apache server port 8888 to the MySQL port of 8889 and now im getting this when i try to load the appropriate file:
I find your reasoning a bit awkward.. What made you think that when no file is found in the directory that changing ports is going to help?
The error you're seeing now is because you're trying to talke http with the mysql server...

to do:

1-) change your httpd.conf so that it uses port 8888 again...
2-) lookup the DocumentRoot setting in http.conf (since this one indicates the default folder where apache will look for files)
Post Reply