While trying to install WordPress-MU on my local development server I kept getting the error message that “MAMP does not support port numbers in the URL.” My dev servers run on MAMP which use the port 8888. So my URLs look something like localhost:8888/wordpress.
Once I figured out how to change the ports the fix was easy. Just open up MAMP and go to preferences (cmd + ,). Go to the “Ports” tab and press “Set to default Apache and MySQL ports.” (NOTE: If you have other web programs installed on your localhost this may affect them and you’ll have to adjust what ports they are using.) Press OK and now try installing WordPress-MU. What do you notice? WordPress-MU states that it doesn’t support localhost but wants a locahost.localdomain.
To get around this just use your internal IP address, which is always 127.0.0.1. For instance, to navigate to my MU installation I enter 127.0.0.1/mu in my browsers URL.
Problem solved.


alice
February 4, 20091:18 amHi,
I enter locahost.localdomain to Database Host, and 127.0.0.1/mu to Server Address, but I got under
"Warning!
Installing to http://localhost/ is not supported. Please use http://localhost.localdomain/instead."
I also try localhost for Database Host & locahost.localdomain for Server Address, localhost for Database Host & 127.0.0.1/mu for Server Address, but got the same warning.
(BTW I did Set to default Apache and MySQL ports.)
Can you tell me what I did wrong?
Thanks
Dane
February 5, 20094:16 amHi Alice,
I had the same issue as you. But everything appears to be working fine now.
In MAMP I set my apache port to 80 and my mysql port to 3306 (these are the defaults)
I then opened terminal and entered
<pre>sudo vim /etc/hosts</pre>
then add a line at the bottom that states
<pre>127.0.0.1 localhost,localdomain<pre>
Navigate to localhost.localdomain in safari and then enter the setup information. The database host is localhost and the web host is localhost.localdomain.
Hope this works for you.
Dane
February 5, 20094:17 amwhoops! ignore those <pre>'s in the last post. I was trying to get some nice formatting going.
johnkolbert
February 5, 20094:23 amThanks for replying Dane. I've been busy and hadn't had a change to yet. Alice, hopefully Dane's suggestion works for you.
Jeff
February 28, 20099:52 pmHere's a step-by-step walkthrough of the install on Leopard, without using MAMP: http://www.withinsightdesign.com/2009/installing-…
stephen whyte
April 7, 20099:53 pmgreat post!
thanks a lot for the help..Ill be passing this on to friends!
Bubo
April 27, 20092:58 pmHi,
I try to install plugin absolte privacy, but I cannot
I log in to my site
go to site administration
Plugins
Add new
search absolute privacy
install
instal now
Download failed, could not create temporary file
Please help,
Thank you
Matty
May 23, 200910:19 pmI am trying to get MAMP to work on the Apache and MySQL default port settings but when I change it the servers won’t restart and I am forced to reinstall MAMP.
Any suggestions would be appreciated, this is driving me crazy.
Matty
HERO
February 22, 20105:57 amMake sure you've got Web Sharing turned off in your OSX Sharing Preferences.
maimax
June 4, 200910:51 amOHH Very Interesting post! Thank you for such interesting resource! PS: Sorry for my bad english, I’v just started to learn this language
See you! ^_^
Alex Stomp
June 30, 20098:43 pmWOW! Nettuts.com made an article that explained, step by step.. how to set this up… you’ve just simplified the task to 2 steps and having to change bookmark URLs
Would it be TOTALLY out of line to say I LOVE YOU?!?! I know THAT’s always appreciated…
Seriously though,
GREAT ARTICLE! I’ll spread the word, and you should also look for forum threads on this and post a link here on there.. lots of people are trying to figure this out!
Alex Stomp
June 30, 20098:44 pmwow… sorry for all the smilies…
derry
July 7, 20092:22 amEverytime I type localhost.localdomain into my address bar it automatically adds http://www... then nothing works. Anyone know why this is?
Tore
July 23, 20093:10 pmI tried using 127.0.0…. instead (look at the post for correct numbers) and that worked.
Tore
July 23, 20093:09 pmThanks a lot! Had to read it a couple of times before I got it.
Leanne Borrowman
October 3, 200912:05 pmHi John,
I have done everything you have posted above and mamp is showing both lights as green fine.
I have even followed Danes instructions yet I still get a 404 error when I url to : 127.0.0.1/mu/
When on port :8888 I at least got the installation page, just don't know what I am doing wrong!
When I url to : http://localhost.localdomain/ I get the "IT WORKS" message… so it should be fine?
Leanne Borrowman
October 3, 200912:29 pmVery odd, managed to get it working by turning my web sharing off in preferences.
chi
March 1, 201010:53 amThank you so much man. I can't believe its so simple and had waste of my time on it already
Kylie
June 9, 20104:47 amThank you,
Your tip worked for WAMP
I’m using WAMP5 on local server running vista. Worked like a charm.
Cheers
evlapix
June 22, 20101:31 pmIt should be noted that this will not work in Google Chrome as of WPMU-2.9.2. Whenever the user logs in they will be redirected to the login page when using Chrome.