We 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.
2. Once the installation is completed, go to Start -> Program -> Apache Friends -> XAMPP -> XAMPP Control Panel. Press the Start button beside Apache and MySQL.
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:xampphtdocs (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.
6. To install WordPress MU in localhost, we need to set up virtual hosting in Windows system.
Go to C:WINDOWSsystem32driversetc 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
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.
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.
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.
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.