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
MAMP --> Can't open my files!!!
Moderator: General Moderators
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.
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.
Re: MAMP --> Can't open my files!!!
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?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:
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)