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.


Reply

alice

February 4, 20091:18 am

Hi,
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

Reply

Dane

February 5, 20094:16 am

Hi 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.

Reply

Dane

February 5, 20094:17 am

whoops! ignore those <pre>'s in the last post. I was trying to get some nice formatting going.

    Reply

    johnkolbert

    February 5, 20094:23 am

    Thanks for replying Dane. I've been busy and hadn't had a change to yet. Alice, hopefully Dane's suggestion works for you.

Reply

Jeff

February 28, 20099:52 pm

Here's a step-by-step walkthrough of the install on Leopard, without using MAMP: http://www.withinsightdesign.com/2009/installing-...

Reply

stephen whyte

April 7, 20099:53 pm

great post!
thanks a lot for the help..Ill be passing this on to friends! :-)

Reply

Bubo

April 27, 20092:58 pm

Hi,

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

Reply

Matty

May 23, 200910:19 pm

I 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

    Reply

    HERO

    February 22, 20105:57 am

    Make sure you've got Web Sharing turned off in your OSX Sharing Preferences.

Reply

maimax

June 4, 200910:51 am

OHH 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! ^_^

Reply

Alex Stomp

June 30, 20098:43 pm

WOW! 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! :D

    Reply

    Alex Stomp

    June 30, 20098:44 pm

    wow… sorry for all the smilies… ;)

Reply

derry

July 7, 20092:22 am

Everytime I type localhost.localdomain into my address bar it automatically adds http://www... then nothing works. Anyone know why this is?

    Reply

    Tore

    July 23, 20093:10 pm

    I tried using 127.0.0…. instead (look at the post for correct numbers) and that worked.

Reply

Tore

July 23, 20093:09 pm

Thanks a lot! Had to read it a couple of times before I got it.

Reply

Leanne Borrowman

October 3, 200912:05 pm

Hi 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?

    Reply

    Leanne Borrowman

    October 3, 200912:29 pm

    Very odd, managed to get it working by turning my web sharing off in preferences.

Reply

chi

March 1, 201010:53 am

Thank you so much man. I can't believe its so simple and had waste of my time on it already

Reply

Kylie

June 9, 20104:47 am

Thank you,
Your tip worked for WAMP
I’m using WAMP5 on local server running vista. Worked like a charm.

Cheers

Reply

evlapix

June 22, 20101:31 pm

It 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.

Comment on this post:

License: By commenting you are granting me a perpetual, non-exclusive license to reproduce, paraphrase, and display your words, name, and/or website on this domain. All comments subject to moderation, editing, or deletion at my discretion.

Important: Unfortunately, I'm unable to offer support via comments. However, feel free to hire me.

Entering code?

(optional)