Page 1 of 1
MAMP --> Can't open my files!!!
Posted: Thu May 24, 2007 12:28 pm
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
Posted: Thu May 24, 2007 1:18 pm
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.
Posted: Thu May 24, 2007 1:23 pm
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

Thank you very much though, i ended up figuring it out... most appreciateed.
-andrew
Re: MAMP --> Can't open my files!!!
Posted: Thu May 24, 2007 3:56 pm
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)