chavista — 2012-01-07T23:00:30-05:00 — #1
I've been using MAMP on a Mac for several years. I have all my sites set up to be viewed locally at URL's like http://CH, http://SL, etc.
I just upgraded to a new MacBook Pro and a new operating system (Lion), then upgraded MAMP. I used my old laptop settings as a guide in setting up a website in Dreamweaver, then setting it up with MAMP's Hosts feature.
However, it doesn't work. When I navigate to http://SL, I get the message "Google Chrome could not connect to sl." I get the same message when I navigate to http://localhost
When I type in http://localhost:8888, I get the message "Forbidden - You don't have permission to access / on this server."
When I define my site in Dreamweaver and was asked to specify a URL, I tried http://SL and http://localhost/SL. Both prompted the following error message:
"Dreamweaver cannot use the prefix you entered to display live data. Please double-check your site configuration or click on Help for more information on how to correct this problem. (HTTP Error: 0)."
Anyway, can anyone tell me what I'm doing wrong? Again, I want to preview my websites at URL's like http://SL My websites are located in a top level folder named Sites, just as they are on my old computer. That could be part of the problem; I saw a comment somewhere that I should put my html files in the htdocs folder, which is located inside the Applications folder.
I remember working through all this when I first installed MAMP on my other laptop years ago, but I can't remember how I fixed it.
Thanks for any tips.
P.S. If it sheds any light on the situation, I can access phpMyAdmin at http://localhost:8888/phpMyAdmin/?lang=en-iso-8859-1&language=English
ralphm — 2012-01-08T00:26:36-05:00 — #2
That doesn't really matter; it's just an option. But you can't view your sites in MAMP at an address like http://SL without doing a bit of work, such as editing your hosts file. Here is a nice explanation of what to do:
(Even I, as a noob at this, was able to follow those instructions, which is saying a lot!)
Not sure if this is the reason, but you have to make sure MAMP is actually running to be able to view your MAMP sites.
PS: Just post your question once, and we can move it if needed.
chavista — 2012-01-08T00:45:42-05:00 — #3
Thanks for the link; that's probably the answer. I remember editing a lot of files when I was on a PC, but I couldn't remember if I had to edit any on a Mac.
chavista — 2012-01-08T00:47:13-05:00 — #4
On second thought, that article says you don't have to edit any files if you use MAMP Pro, which is the program I have. I guess I have to do a little more homework here...
ralphm — 2012-01-08T01:12:15-05:00 — #5
Hm, yes, with the Pro version, you are supposed to be able to click a button or something, but I've not used it.
chavista — 2012-01-08T12:28:00-05:00 — #6
I figured it out. I just changed Apache's port to 80 and MySQL's port to 3306.
Which isn't to say I was smart enough to figure it out myself; I just stumbled across the answer online.