loading
Picture of How to install latest WordPress on Windows

While searching through the web I was not able to find a detailed step-by-step installation instruction of WordPress content management system (CMS), specifically on the local host. When I installed WordPress first time, I was a trainee at Wordpress Integration (Service Specialising in PSD to WordPress Theme Conversion). At that time, I didn't have much information about WordPress installation and therefore faced some common problems that I think you would have also faced sometime.

WordPress is one of the most used blogging tools available on the web. It is open source and it is free. It has a huge number of advantages such as an efficient plug-in architecture, search engine optimized coding, user friendly setup, customizability, and the list goes on. If used cleverly it can save huge amounts of money for a site, especially the amount spent on development.

Installing the latest WordPress content management system (CMS) is not a very complicated process. However if you are building a WordPress site from the scratch or even thinking about doing some changes to the site, it is highly advisable to first do the changes on a localhost installation of the WordPress.

So here we give you step-by-step instructions on how to install WordPress on the localhost server.

 
Remove these adsRemove these ads by Signing Up

Step 1: XAMPP

Picture of XAMPP
For this tutorial we are using XAMPP as our web server solution. XAMPP is also open source and thus free to download and use. XAMPP is the abbreviation of cross platform (X), Apache HTTP server, MySQL, PHP, and Pearl, thus you get a MySQL database system, an Apache HTTP server, and support of PHP and pearl script, that is compatible with many types of platforms.

Step 2: Download and install XAMPP

Picture of Download and install XAMPP
Screen Capture 2 - xampp control box.jpg
To download and install XAMPP, just visit http://www.apachefriends.org/en/xampp.html, download and then install the XAMPP software.  Installation is really easy and the software itself is not that heavy.

After installation, go to the XAMPP folder and open xampp-control.exe. Start Apache and MySQL modules, and viola! Your local host is up and running.

Step 3: Checking localhost

Picture of Checking localhost
To test whether localhost is running well, open a web browser and visit Http://localhost. You would see something like this

Step 4: Preparing the way for WordPress

Picture of Preparing the way for WordPress
database_created.jpg
Creating a database in phpMYAdmin

Now since local host is performing well, let’s prepare the way for a clean WordPress installation. First open phpMYAdmin. We need a new database to install and manage our WordPress cleanly and efficiently, so let’s create a new database. We have named it wordpressinstall but you can name it any way you like.

Step 5: Adding a user to the database

Picture of Adding a user to the database
usercreation.jpg
Now we have to add a user to the database. This step is not necessary as there are already one or two users in the localhost with a user named root being the most important of them all. However using the root user for WordPress is not advisable because root user has every privilege and any bug or loophole in the WordPress Security would expose your whole database to threats. Therefore we create a new user and give it specific privileges.

In this tutorial however we give every privilege to our new user as there are no potential threats in the local host, but when you transfer it to live web, remember to alter the user privileges.

So let’s create a new user. Go to myPHPAdmin home => privileges => add a new user.

Enter username (we have entered installuser), select local in host field, type a password, and grant all privileges to the user. Click Go.

Step 6: Asigning privileges to the new User

Picture of Asigning privileges to the new User
user-privileges.jpg
user privileges 2.jpg
We have created a new user. Now we have to give it database specific privileges. Our user has global privileges so it would be able to access any database but it’s important to know how to add database specific privileges.

Go to home => wordpressinstall => privileges. In front of the newly created user, installuser, click on edit privileges button which is in actions column.

In the Add privileges on the following database select wordpressinstall

Step 7: Let’s install WordPress

Picture of Let’s install WordPress
download-wordpress.png
Downloading WordPress

Alright, now it’s time to install WordPress. Visit http://wordpress.org/ , and download the latest stable version of WordPress. (In our case it was v3.5).

Step 8: Extracting WordPress

Picture of Extracting WordPress
Extract the zip file in xampp\htdocs folder. You will get a folder named WordPress.

Step 9: Initial configuration

Picture of Initial configuration
Open it and open the file named wp-config-sample.php.

You can use any text editing software. We have used notepad ++ (it is also free)

Step 10: Wrapping up Initial configuration

Picture of Wrapping up Initial configuration
In this file change the value of ‘DB_NAME’, 'DB_USER', and ‘DB_PASSWORD' to the newly created values.

Save the file as wp-config.php in the same xampp\htdocs\wordpress folder.

Step 11: Installing Wordpress

Picture of Installing Wordpress
Screen Capture 16 - WordPress › Installation.jpg
Now open the browser and go to http://localhost/wordpress/wp-admin/install.php. You will see the WordPress install script. Fill the form and click install.

Congratulations!! You are now a proud owner of a new WordPress site.

Step 12: Checking the WordPress site

Picture of Checking the WordPress site
To check how it looks, simply open http://localhost/wordpress/

Step 13: Opening WordPress Dashboard

Picture of Opening WordPress Dashboard
Screen Capture 19 - Dashboard.jpg
And to change the site’s settings, go to http://localhost/wordpress/wp-admin, login using your ID and password. It will open your WordPress dashboard.

This is the place where you can play with your site and configure it to a desired look and functionality.

Step 14: What next

Picture of What next
Now you have a whole universe of WordPress to explore. Install additional plugins, themes, widgets and much more. Test your creativity to the extreme.

XAMPP serves as your hosting that is why it is important to set it up first before installing your Wordpress CMS