MakeTechEasier
  • Home
  •  
  • About
  •  
  • Archives
  •  
  • Jobs
  •  
  • Advertise
  •  
  • Contact Us
  • Windows
  • Linux
  • Mac
  • Internet
  • WordPress
  • iPhone
  • Android
  • All Categories
    • Android RSS
    • Firefox RSS
    • Gaming RSS
    • Google RSS
    • google chrome RSS
    • Internet RSS
    • iPhone/iPod Touch RSS
    • Linux RSS
    • Mac RSS
    • Mobile RSS
    • OpenOffice RSS
    • PC Hardware RSS
    • Review RSS
    • Roundup RSS
    • Windows RSS
    • Windows Mobile RSS
    • WordPress RSS
    • WordPress Plugins RSS
  • rss icon
  • email icon
  • facebook icon
  • twitter icon

How To Install WordPress MU In Windows Localhost (With XAMPP)

Posted by: Damien on May 2nd, 2009
  • 43 Comments
  • Share

wordpressmu-headerWe are all familiar with WordPress, the popular software that makes blogging an easy and enjoyable task. WordPress MU is an extension of WordPress that gives you the capability to create multiple blogs in one domain. One good example of WordPress MU in action is WordPress.com.

If you want to use WordPress MU on your site, but wanted to test it thoroughly before making it live on the server, the best way is to create a local server and test the installation in your computer first. In this tutorial, you will learn how to create local sever on Windows (using Xampp) and install WordPress MU.

Installing Local Server

1. Go to Xampp For Windows and download the Windows installer.

Run the installer. When it comes to the installation options page, select Install Apache and MySQL as a service.

Xampp installation options

2. Once the installation is completed, go to Start -> Program -> Apache Friends -> XAMPP -> XAMPP Control Panel. Press the Start button beside Apache and MySQL.

Xampp control panel

Your local server is now running. Open your browser and go the URL: http://localhost. It should show the following page:

Installing WordPress MU

3. Download the WordPress MU zip file.

4. Extract it to the folder: C:\xampp\htdocs\ (if you have installed Xampp in different location, you have to extract the WordPress-MU folder to the htdocs folder in the Xampp directory)

Setting up database for WordPress-MU

5. In your browser, go to the URL: http://localhost/phpmyadmin

In the “Create New Database” field, enter a name for your database. Press Create.

creating wordpress mu database

Configuring virtualhost

6. To install WordPress MU in localhost, we need to set up virtual hosting in Windows system.

Go to C:\WINDOWS\system32\drivers\etc and open the file “hosts” with notepad (you need to have administrator privilege to edit the file. Right click the Notepad application in the Start menu and select Run As Administrator).

Insert in the line

127.0.0.1 localhost.localdomain

to the end of the file. Save and close the file.

7. Back to your browser, go to the URL: http://localhost.localdomain/wordpress-mu. You should see the WordPress MU installation page.

In the field where it asks you to choose between Sub-domains or Sub-directories, select Sub-directories. This will save you plenty of trouble later on.

wordpress mu choosing sub directories

If you insist on choosing Sub-domains, whenever you create a new test blog (with the sub-domain test1), you will need to update the hosts file with the sub-domain entry.

127.0.0.1 test1.localhost.localdomain

In the database section, enter the database name that you have created just now. Under the Username field, enter ‘root‘ and leave the password field blank.

Wordpress mu database entry

When you are done filling in the rest of the details, click the Submit button to finish the installation. If everything goes smoothly, you should see the “Installation Finished” page.

wordpress mu installation finished

That’s it.


Damien Oh is the owner and chief editor of Make Tech Easier

Tags: localhost, windows, wordpress-mu, xampp
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading ... Loading ...

Share and Enjoy!

  • Rss feed
  • StumbleUpon It!
  • Del.icio.us
  • reddit

Related Posts

  • Setup a PHP/MySQL Environment on Windows The Easy Way
  • How to Create a Virtual Machine of Your Existing Windows Operating System
  • One More Way to Install Windows 7/Vista/Server 2008 From a USB drive
  • Syncing To Google Calendar
  • View .Docx Files With Word Viewer For Windows

Popular Posts

  • Turn Your Ubuntu Hardy to Mac OSX Leopard 498 comment(s)
  • Turn Your Ubuntu Intrepid Into Mac OSX Leopard 311 comment(s)
  • 28 Coolest Firefox About:Config Tricks 122 comment(s)
  • How To Boot And Install Windows 7 From USB Flash Drive 122 comment(s)
  • Best 101 Free Computer Software For Your Daily Use 101 comment(s)

Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.

Enter your email:

4 pingbacks/trackbacks (Click to open)

  • Installing BuddyPress and WP MU
  • Instalando o Wordpress MU em localhost(com o Xampp for Windows) « Marcelo Torres
  • Wordpress MU | Learning Daily
  • How to install WordPress MU on a Windows platform « WordPress
[Click to close]

43 Responses

  • Simran says:
    May 3, 2009 at 2:21 pm

    Great tutorial. :)

    Reply
  • Eric says:
    May 3, 2009 at 10:18 pm

    I actually just installed MU today. Have any useful links on setting up emailing functionality?

    Reply
    • JavaKaJalwa says:
      July 6, 2009 at 6:02 pm

      Eric, use hMailServer, its a free email server

      Reply
  • Ken Duret says:
    May 4, 2009 at 1:00 am

    Hmm… Getting “error establishing database connection”. I am very familiar with xampp and wordpress and have never been able to set up WPMU on my localhost. I’ve put off learning WPMU because of this but I really would like to start developing with it.

    I have the latest version of xampp 1.7.1 win 32 amd WPMU. My win32 “hosts” file is correctly updated and there is an empty database for the install.

    Any ideas why I would get “error establishing db connection” or why I’ve had such a difficult time installing WPMU?

    Thanks for the info. It gave me hope for a few minutes!

    Reply
    • Damien says:
      May 4, 2009 at 1:22 am

      If you are having the “database connection” error, it means the browser can connect to the server, but cannot access the database.

      1) Restart your XAMPP
      2) Check your wp-config.php file that the database connection information is correct. Remember, for XAMPP, the username is root and the password is blank.
      3) If this don’t work, download a fresh copy of WPMU and reinstall everything again with a different folder name.

      Reply
      • Ken Duret says:
        June 9, 2009 at 5:32 pm

        Darn- still no joy.

        I have latest wpmu files freshly unzipped to a new htdocs folder named wp-multi.

        I went to localhost.localdomain in my browser to see if it could find xampp. Success! I went into phpmyadmin and could find the db named wpmu with no tables still on http://localhost.localdomain/phpmyadmin

        Went to localhost.localdomain/wp-multi and still get 500 unable to connect error. So i looked at the wp-config-sample.php in the wpmu files. It is my understanding that wpmu creates the wp-config upon installation. The thing I find strange is it appears that wpmu does not need an initial db connection to run the install. It cannot connect to the db until you tell it where to look during the installation process.Is it possible that I need to edit the apache config files to make it work with wpmu?

        Reply
        • Damien says:
          June 11, 2009 at 1:56 am

          Check the wpmu folder and see if the wp-config.php and .htaccess file have already been created. If yes, delete them.

          Reply
  • Jaimy says:
    May 5, 2009 at 12:55 pm

    Im want to throw my computer out of the window!
    Thats how frustrated i am right now.
    For two days i tried to setup wpmu on xampp.
    I have tried it with root + password ( because i have set up everything with a password ), and also tried it with leaving the password blank. Fresh installations and everything are not doing the trick. I have a clean database specially for wpmu butr i dont understand why i cant get it to work and i reallyneed this so i can practice with buddypress…

    Reply
  • Anup says:
    May 8, 2009 at 11:12 am

    Simply a great tutorial – a very lucid one – and my installation on local computer was a breeze. It would definitely help me to make choices for instalation of wp-mu on my new site indiapoint.org Thanks

    Reply
  • marga rodriguez says:
    June 7, 2009 at 12:27 am

    Just recently took out my website pages to clear it up for this installation. I was banging my head for two days to install this over my server. Thanks for the tip! Had to re-do the installation a few times, am just so happy that it’s now working. Thanks again!

    Reply
  • Bill Gibson says:
    June 10, 2009 at 1:53 pm

    I have used your steps above several times and it makes the install super easy! Thanks!!! *I am a novice to WAMPP, especially the AMPP parts.

    In Step 5. above you show the MySQL connection collation as “utf8_general_ci”. In an install of Wordpress (standalone), one of the instructions was to use “utf8_unicode_ci” here. *Not sure that this is what caused the following quirk in the WPMU app…

    The post “description” editing buttons did not appear so I was stuck with the HTML coding window. I did a re-install and used the “utf8_unicode_ci” collation and the buttons were there. Not sure if it was the re-install or this change.

    Reply
    • Damien says:
      June 11, 2009 at 1:34 am

      I have used “utf8_general_ci” and it worked well for me. It seems that the configuration could be different for each machine. I hope everything now works well for you.

      Reply
  • beachbum says:
    June 19, 2009 at 6:30 pm

    I get all the way to the end of your tutorial and then it just loops @ http://localhost.localdomain/wp-signup.php?new=localhost.localdomain

    my stats:
    *fresh install of wordpressmu files
    *clean database
    *hosts.cfg only has 127.0.0.1 localhost.localdomain
    *using “subdomains” NOT directories
    *installing from http://localhost.localdomain
    *using win7 and xammp

    for the Server Address should “localhost.localdomain” be used or the “mainsiteurl.com”?

    I already have a working copy of this on another real server with main URL and 145 subs(i understand all subs must be listed in hosts.cfg, just trying to get the main site up at least for now).

    if i just use mysql dump from the real server I get a no site configured error.

    WELP!!!

    Reply
  • vijay says:
    June 29, 2009 at 7:06 am

    this really works thanks ton……..

    Reply
  • JakeA says:
    July 2, 2009 at 5:40 am

    I really liked your tutorial, its clean and easy to follow.
    I tried installing wpmu on xammp, i thought it was that easy, but I was wrong. I’m glad I found this post. Now I goit my wmpu working on my computer!

    maraming salamat! ( thank you! )

    Reply
  • Djoaniel says:
    July 8, 2009 at 4:29 am

    excellent tutorial!

    corrected ALL my problems pertaining to wordpress-mu

    Reply
  • AbhiTechBlog says:
    July 31, 2009 at 4:22 am

    Excellent! Just what I was looking for! Thanks a ton.

    Reply
  • ejakulasi dini says:
    September 7, 2009 at 12:42 pm

    The tutorial is great, thanks for posting it. I learn here.

    Reply
  • Robert Nelson says:
    September 22, 2009 at 11:11 pm

    Is it possible to edit the Myphpadmin entries to change the password for WPMU or is it easier to do a new install?

    I thought I had changed both username and user activation using MD5 in the wp_user part of MyPhpAdmin. But I still can’t log-in to WPMU.

    I show the Kubrick front end among several possibilities is a log-in which if clicked presents one with both a username and a password box(same idea as single user WP)For whatever reason I didn’t do two things 1. copy and paste the randomly generated password 2. immediately log-in and change said password.

    So I’m stuck at the Kubrick page, in one sense pleased that I got that far and p’od that I didn’t complete the install right then. Only possible excuse is that I was floored that the second try with WPMU worked.

    Reply
    • Damien says:
      October 2, 2009 at 3:36 am

      I would suggest you to do a reinstallation.

      Reply
  • Dude says:
    September 30, 2009 at 12:34 am

    Dude, you helped me sooo much. Just wish I could go back in time 2 hours and undo Xampp changes.. oh, I can, just re-install.

    Reply
  • Toto says:
    September 30, 2009 at 10:29 pm

    Thank’s for the info …

    Reply
  • Duncan says:
    October 9, 2009 at 7:17 pm

    Worked like a dream, and so quick!……I am just sooooooooooo grateful.
    I tried to do similar on Wamp and after several hours totally failed. I had given up on mu till I found this article. Thank you so much

    Duncan

    Reply
  • membesarkan payudara says:
    October 26, 2009 at 9:37 pm

    This tutorial works, thanks very much.

    Reply
  • Skip Knox says:
    October 27, 2009 at 12:40 pm

    Like others, I had tried and failed with WAMP. There are simply no clear instructions for getting wpmu working in a wamp environment. Have wrestled that gator recently, I think part of the problem is in understanding when to change passwords and when to leave the defaults in place and the other part lies in configuring the Windows hosts file. The wamp/wpmu instructions say nothing about setting up virtual hosts to get wpmu to work. One or both may be the problem, but since I am only interested in creating a sandbox where I can fool around with themes and plugins without disrupting our production WPMU install (which is on linux anyway), I just don’t care.

    The one amendment I would make to the instructions above is that by default the Windows hosts file is read-only. You have to change its Properties. Other than that, everything worked as advertised. I’m off to botch up themes. Happy coding!

    Reply
  • Rajesh Kanuri says:
    November 4, 2009 at 8:05 am

    Great Tutorial…

    Reply
  • joevs says:
    November 14, 2009 at 11:01 pm

    One quick tip. Vista was not allowing me to save the edited hosts file. Did some googling to find the solution. Here it is: Notepad has to be “run as administrator” in order to save the modified file. This is easy to do. 1) Go to start menu. 2) Find Notepad in the programs list 3) right-click on notepad and choose “Run as administrator” 4) You will get a pop-up box asking for permission – click “continue” 5) in Notepad go to files – open and navigate to the “hosts” file and open it 6) make the change suggested above and save the file. The modified file is now saved and you can move on.

    Thought others might encounter this same problem.

    Reply
    • Damien says:
      November 15, 2009 at 1:03 am

      @joevs: Thanks. I have make the update in the article.

      Reply
  • Joe says:
    November 20, 2009 at 5:55 pm

    Hey there, I’m toying with blog networks, etc. Thanks for the tips. Your post work exactly as written.

    Thanks!!

    JOE

    Reply
  • riz says:
    November 24, 2009 at 1:27 am

    Hi,

    I hv installed wordpress-mu following above all steps (so easy). but after installation, web server can’t access folder wordpressmu where all files are pasted.

    when the page localhost.mydomain is being displayed, the folder wordpressmu is not visible.

    Plz help …

    Reply
    • Damien says:
      December 9, 2009 at 2:37 am

      is your folder labelled as wordpress-mu or wordpressmu. You need to access it with the correct name.

      Reply
  • wino says:
    December 11, 2009 at 7:14 am

    how to upload wp from http://localhost/…./wordpress ====> http://www.name.com or http://www…...

    thank you

    Reply
  • designodyssey says:
    December 11, 2009 at 7:36 pm

    Just wanted to add my Kudos. Worked like a charm. Probably want to remind folks to change their password immediately.

    Reply
  • Gary says:
    January 10, 2010 at 4:57 am

    Excellent instructions for installing WordPress MU with the awesome XAMPP. Thank you. After battling for hours, your instructions helped me install WPMU in a few minutes :)

    Reply
  • uggs says:
    January 11, 2010 at 4:46 am

    very good!

    Reply
  • Gambuto says:
    January 12, 2010 at 8:27 am

    <3 Finally!!

    thx

    Reply
  • kwatog says:
    January 14, 2010 at 10:41 pm

    cool! exactly what I needed because I’m having the “localhost.localdomain” error.

    Reply
  • determined... says:
    January 19, 2010 at 6:20 pm

    Hi.. was hoping this was gonna be the answer to my problems in installing wordpress mu as a localhost in xampp but i am still experiencing problems.. I have right clicked on notepad and run as administrator, have then gone into notepad, into hosts, typed in 127.0.0.1 localhost.localdomain but when i click on save i get the following message:

    Cannot create the C:\Windows\System32\drivers\etc\hosts file.

    Make sure that the path and file name are correct.

    I have no idea what i am doing wrong… can anybody help me get past this??

    Thanks..

    Reply
  • Alvin Tan says:
    February 3, 2010 at 8:06 pm

    I’ve just installed WP 2.9.1 locally with XAMPP Windows 1.7.3 in my Vista PC.
    How To Install WordPress Locally With XAMPP

    Reply
Cancel reply

Leave a Comment




Comment

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again

write for MTE

Latest Posts

  • OfficeMedium – A Social Collaboration Platform For The Small Business + Free Promotions
  • MakeTechEasier Is Now Hosted On KnownHost
  • KTorrent: KDE’s BitTorrent client
  • How to Create a Customized Toolbar for Your Browser
  • 13 Ways To Customize Ubuntu Netbook Remix For Better Usability

Our Writers

  • Damien Oh - Chief Editor
  • Sharninder - Geeky Ninja
  • Joshua Price
  • Tavis J. Hampton - Lantern Torch
  • Shevonne Polastre - FreeAgentWriter
  • Trevor Dobrygoski
  • Soumen Halder - Ampercent
  • Tanmay Ahmed - Tech-Tips-Geek
Make Tech Easier on Facebook
Jobs by SimplyHired
Job Widgets

Copyright

All the articles (including the text, images and tutorials) are properties of MakeTechEasier.

You cannot copy whole tutorials, either in English or translate to another language without our permission.

Write for us

Writing a tutorial or article for MakeTechEasier is a great way to get exposure and give back to the community.

Read More Details

Suggestions

We need your help to help us serve you better! This is YOUR site, so if you have suggestions/feedbacks on how we can improve it for you, please let us know! We do our best to make this place better!

Make a Suggestion

Navigation

  • Home
  • About Us
  • Advertise
  • Archives
  • Contact Us

Copyright © 2007-2010 Make Tech Easier | All Right Reserved.