If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Before I continue to answer the above title, I just would like to share with you WHY should we install Wordpress blog in our own computer:

  1. You can make it as a test blog. You can test your new theme and new plugin, without worrying on breaking your official blog in the webhosting server. I like to keep my hands dirty by playing with the theme editor. By having a locally hosted Wordpress blog, I can do almost anything with the theme.
  2. When you have your own Wordpress blog in your computer, you don’t have to be connected to the internet all the time to upload your blog in your browser from your webhosting server.
  3. You can make it as a back up blog. Make the locally hosted blog as a “mirror blog” which have all the plugins and themes of your official blog. If anything happens to your blog online, you have almost the same blog locally to count on.
  4. You can also make it as a personal diary, where none of the post that you wrote can be access by internet user.
  5. A good learning process on how servers are operated, and maybe you could also install other blogging platform and compare it with Wordpress.
  6. You don’t need to use FTP to transfer your files to the server.
  7. None of the software that you need to have Wordpress installed in your computer cost you anything. You just need some passion and a little bit of elbow grease to get the things going. So why not?

What do you need?

Basically you will need to transform your notebook/PC computer to be a server, and to be exact, an Apache server. You will need XAMPP to do the job.

XAMPP is an Apache distribution which contains MySQL, PHP and Perl. It is the best package that you could use to run Wordpress blog in your computer. You don’t have to be a geek to install XAMPP though, as it comes with a one-click Windows installer for you.

Don’t forget your Wordpress installer package.

Installation

XAMPP

Choose the latest stable distribution “XAMPP Windows Installer Version” from Apache Friends. Choosing other than the installer version will give you headache. Run the installer in your computer after successful download. Apache Friends have all the information on how to install XAMPP in your computer.

To make sure that you install XAMPP properly, open ‘CONTROL XAMPP SERVER PANEL’ from Start Menu > All Programs > apachefriends > xampp. Click ‘Admin…’ from the Apache service modules. It should open your browser and show this:

XAMPP

The URL address should be http://localhost/xampp/

Wordpress

Now we go into Wordpress installation. Installing Wordpress in our local server is a bit tricky. You won’t find public_html (which you usually have in remote servers) subdirectory in XAMPP server, as XAMPP use htdocs as their public_html subdirectory.

Follow the steps below:

  1. You need to first create a database for Wordpress by using phpMyAdmin as the manager. While you are on http://localhost/xampp/, choose “phpMyAdmin” in the left sidebar. Create a new database for your Wordpress, for example ‘wordpress’.
  2. mySQL

    By that, XAMPP is sorted out by now.

  3. Download and unzip your Wordpress folder and locate wp-config-sample.php. These are the exact details you need for XAMPP to work because the default user in phpmyadmin is called ‘root’ and there is no password.

    *****

    define(’DB_NAME’, ‘wordpress’); // The name of the database
    define(’DB_USER’, ‘root’); // Your MySQL username
    define(’DB_PASSWORD’, ”); // …and password
    define(’DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

    *****

    Copy those details into your wp-config file, and save it as wp-config.php

  4. Now you need to copy the files to the right place. Locate htdocs folder in XAMPP. For example, I installed XAMPP inside my Program files folder. So, my htdocs folder would be in the C:/Program files/xampp/htdocs. Copy the whole WordPress folder into this directory.
  5. In your browser, go to http://localhost/wordpress/wp-admin/install.php and everything from there should run smoothly !

I have been using Wordpress with XAMPP for the past few months, and found out that it is a good way to feel like a “webmaster” rather than just a “blogger”. XAMPP has become my server playground to test various types of PHP scripts for my websites and blogs, and getting my hands dirty with other blogging platforms.

By the way… Do you know that Wordpress is an Open Source project?

Happy webmastering!