This is the first chapter of the WordPress Theme Guide series. In this chapter, you will learn how to install WordPress on a local computer. An essential for any aspiring theme developer is a local install of WordPress. There are plenty of benefits to doing so and there are also pitfalls if you don’t. I will tell you about the pitfalls in a second, but before that, I want to tell you 5 great reasons why you should use a local install as your sandbox as opposed to installing a live version on some subdomain of yours:
-
Works exactly like the real deal; plugins and all
-
No need to mess with FTP programs
-
Develop anywhere (no connection needed)
-
Make sure your theme is compatible with latest version of WordPress
-
Code in secret, then release with a bang
Quick Summary
If you have some technical background, you can skip the detailed steps in this tutorial. Here are the simplified steps on how to install WordPress on a local computer:
-
Create a new database.
-
Download WordPress from wordpress.org and extract the files to a new folder under the htdocs folder.
-
Rename the wp-config-sample.php file to wp-config.php and update the database details according to your local server.
-
Run wp-admin/install.php and follow the instructions to install WordPress.
-
Done!
Let’s Begin!
Before you start, let’s look at the requirements to run WordPress:
- PHP 4.3+
- MySQL 4+ Database Server
1. Install a Local Server

In order to run any PHP/database application on a local computer, you need a local host (ie. Apache + MySQL). For Mac, use MAMP. For PC, use XAMPP or WAMP.
I’m using PC here, so I’m going to install XAMPP. Go to xampp.info, download and install XAMPP.
2. Create a New Database
After you’ve installed XAMPP, run it and, in your browser of choice, navigate to http://localhost/xampp/splash.php. Click on your language. On the left hand side, under Tools, click phpMyAdmin. On that page, you will see the MySQL heading, like in the screenshot below:

Call the database wordpress and select utf8_unicode_ci from the drop down menu. Click Create
3. Download WordPress
Go to wordpress.org and download the latest build of WordPress. Go to the htdocs folder (where you installed the MAMP), extract the wordpress.zip to a new folder (eg. mysite).

4. Update wp-config.php File
In the folder, rename the wp-config-sample.php to wp-config.php. Open wp-config.php and update the database details (db_name, user, password, host) according to your local server.

5. Run install.php
With your browser, go to http://localhost/mysite/wp-admin/install.php and follow the instructions to install WordPress.

What’s Next?
In the next chapter, I’m going to show you how to create a custom WordPress theme in designer way (no PHP skill is required).









Hi,
The WordPress Jeans Theme made me really laugh, it’s cool and clever.
Please send me an email, when you are ready with the 2nd part of WordPress locally, I started doing this 3 days ago, but I’m still quite clumsy with the Templates, I’m grateful to follow you on the shortcut……
Keep on rocking!
Ethel
just a reference for noobies: in case the whole she bang is hard to install locally try http://www.microsoft.com/web/gallery/WordPress.aspx
[...] Chapter 1: Installing WordPress Locally [...]
thank you for this information, can you tell me how do you update wordpress?