Install WordPress In Your Local Computer With XAMPP

If you’ve been using WordPress to power your blog, you’d probably know that it is very useful to have a copy of WordPress installed in your local computer. It allows you to post a draft copy of your article offline, test & modify your theme or plugins locally before upload to the server.

Setting up WordPress on your local computer is straight forward. All you need is the WordPress itself & XAMPP as a host server. In this article, I show you how to install WordPress on your local computer with XAMPP.

1 Download & Install XAMPP Lite

First, you need to download & install XAMPP Lite. (I recommend the lite version because there are some applications that bundled with the full version which you are hardly need them for normal work. XAMPP Lite is most importantly contains Apache, MySQL & PHP, those three are the one we need.)

Be sure to download the self-extracting archive, it is the easiest way to install XAMPP. Double click the EXE file, choose a directory and click “Install”.

Setup XAMPP Lite

Once the installation is completed, double click the “XAMPP Control Panel” icon to launch XAMPP Control Panel. Next, click “Apache” & “MySql” start buttons to get both applications running.

XAMPP Lite Control Panel
XAMPP Lite Running

Now, you need to check whether your Apache local server is running properly. Go to your browser, in the address bar type http://localhost & press enter. If the XAMPP is installed correctly, you will see the default “splash” page as illustrated bellow. Select a language to enter the welcome page.

XAMPP Lite splash page
XAMPP Lite welcome page

2 Create The Database For WordPress

Your Apache server & MySql database are now running. Now we need to create a database for your WordPress. Under the Tools menu on the welcome page, click “phpMyAdmin”. Enter “MyWordpress” into the “Create New Database” textbox, make sure “utf8_unicode_ci” is selected & press “Create”.

Create The Database For WordPress

3 Download & Install WordPress

That’s all for XMAPP. Now, download the latest version of WordPress http://wordpress.org/ (zip file). Extract the WordPress to a new folder (name it as MyWordpress) under the “htdocs” folder where “XMAPP” is installed (default should be at C:\xampplite\htdocs\MyWordpress).

Under the folder, rename the file wp-config-sample.php to wp-config.php. Open & edit the file in Notepad, locate & change the following lines, make sure it is exactly the same as illustrated (database name is ‘MyWordpress’, database username is ‘root’, password is ” & hostname is ‘localhost’).

/** The name of the database for WordPress */
define('DB_NAME', 'MyWordpress');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname */
define('DB_HOST', 'localhost');

Again, go to your browser, in the address bar type http://localhost/wordpress/ & press enter. Key in a Blog Title, Your E-mail & press “Install WordPress”.

WordPress is ready to use

That’s it, your WordPress is now in your locally on your computer & ready to be used . Have fun !

Related Articles
External Links
Comments

5 Responses

  1. Try Wampserver instead of xampp if you are on windows. Much better.

  2. mowes portable is the best around here:
    http://www.chsoftware.net/en/mowes/mowesportable/mowes.htm

    -very good performance
    -very stable
    -portable

    ( its a portable server but you can launch it minimized at startup with option “-a” at the end of the shortcut path )

Leave A Reply

Those who link to this post

Leave a Reply

Feed subscribe via feed, or

get the email updates :

Popular Posts Power Your PC With 45 Free Applications
Clear Your StumbleUpon New Shares From Friends Faster And Easier
Quick Adsense
Clear Your StumbleUpon New Shares From Friends Even Faster
Mosaic Illustrations By Charis Tsevis
The Natural Mirrors

Recent Comments

  • London Affiliate : Hi having issues with this on Thesis and posts, only works on pages but... (more)
  • Mark : The plugin is great but i tried to install the latest version on 1 of my sites and... (more)
  • Julian : I straddle the world between Mac and PC, I rarely find anything new with these... (more)
  • shahbaz : good site (more)
  • Andy : CHeck out www.ezyimageresizer.com as well! Lets you resize images online, in the... (more)
It comes with the intention to highlight anything about blogging & technology that appear to be interesting, beside the useful applications & tools. This is a place for bloggers & tech lovers, and for everyone who know how to use a computer.