How To Install WordPress Locally Using WAMP

WordPress

5.00 ( 1 votes) | 1083

In this article, we will talk about how to install WordPress on local machine using WAMP server. Before getting started with installation, let`s get a brief idea about what is WordPress.

What is WordPress?

WordPress is free, open-source Content Management System (CMS) based on PHP and MySQL. It is one of the most popular online publishing platforms currently powering more than 20% of the web. This blog is also based on WordPress software. It`s nice to have local installation of WordPress, so that we can try new theme, plugins and play with it. Now let`s get started with installation.

Requirements:

  • Download the WAMP server.
  • Download the latest release of WordPress. Current version of WordPress as of writing this article is 4.2.2.

Steps:

1. Install the WAMP Server. After installation small icon will appear in task bar as shown below (F: 1).

WAMP Server Icon In Task bar (F: 1)2. Now click on that icon and select the Localhost option to launch WAMP server as shown below (F: 2).

Launch WAMP Server (F: 2)3. After selecting the Localhost option, we should get a page for WAMP Server. But if you have Internet Information Service (IIS) enable on your machine then you will get the page for Internet Information Service. Because port number for the IIS is 80 and the default port for WAMP server is also 80. To resolve this issue, we need to change the port number for WAMP server. To change the port number for WAMP server, click on WAMP server icon and select the httpd.conf (Location for this file is C:\wamp\bin\apache\apache2.4.9\confoption under Apache menu as shown below (F: 3).

Config File for Apache (F: 3)4. It will open up a file. Locate the following lines in that file.

#Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen [::0]:80

Now change the port number from 80 to port number you like (Try to select the port number above 1024 because port numbers from 0 to 1024 are system ports. In my case, i changed the port number from 80 to 8983).

5. After changing the port number, we need to restart WAMP server. To restart the WAMP server, click on the same icon and select Restart All Services option as shown below (F: 4).

Restart WAMP Server (F: 4)After restart, enter http://localhost:8983/ URL in browser where 8983 is the port number we have specified in httpd.conf file in step 4. We should get a page for WAMP server as shown below (F: 5)

WAMP Server (F: 5)6. Now extract the downloaded WordPress.zip. Create a new folder called WordPress (you can name it as you like) under C:\wamp\www location. Copy all the extracted files and folders under our newly created folder at C:\wamp\www location.

7. We need to create a database for WordPress installation. For that purpose, select the phpmyadmin option from WAMP server localhost page as shown below (F: 6).

Phpmyadmin (F: 6)8. Select the database option as shown below (F: 7) to create a new database.

Select Database Option (F: 7)9. Enter the name of database and click on Create button (In my case, i entered the name of the database as wp_local) as shown below (F: 8).

Create Database (F: 8)10. Enter http://localhost:8983/wordpress URL in browser where WordPress is the name of the folder that we have created in step 6. We will get a WordPress configuration page as shown below (F: 9). Select the language and click on Continue button.

WordPress Configuration Page (F: 9)11. After clicking on Continue button, a page will appear as shown below (F: 10). Click on Let`s Go button.

Instruction Page (F: 10)12. After clicking on Let`s Go button, database configuration page will page appear as shown below (F: 11).   We need to enter the name of the database which we have created in step 9 and username and password for MySQL. We need to enter root as the username and keep the password as blank. (Default user for MySQL is root and password for that user is blank). After filling the information click on Submit button.

WordPress Database Details (F: 11)13. After clicking on Submit button, we will get a page as shown below (F: 12). Now click on Run the Install button.

Run the Install (F: 12)14. After clicking on Run the Install button, a Welcome page will appear as shown below (F: 13) where we need to provide the details about our site. Enter the information and click on Install WordPress button.

Site Details (F: 13)15. After clicking on Install WordPress button, we will get a success page as shown below (F: 14). Just click on the Log In button to get started with WordPress.

WordPress Installation Success page (F: 14)16. After clicking on Log In button, it will again ask for the username and password which we have entered in step 14. We just need to enter those details once again and click on the Log In button. That`s it!!!. We have now successfully installed the WordPress on a local machine. After providing the credentials we will get a page for WordPress admin dashboard as shown below (F: 15).

WordPress Admin Dashboard (F: 15)

Conclusion:

We successfully install the WordPress on a local machine using WAMP server. Hope this help you. I hope you enjoyed reading the article. If you have any problem while installation please comment below so that i can help you.

Manoj Kulkarni - Dotnetcontext

Manoj Kulkarni

I am programmer, passionate blogger and foodie. I live in Nashik. I am a .Net developer. I like to learn new technologies to keep my self-updated and share that knowledge with my blog readers, friends and colleague.

2 Comments


Gaurav Raut - Dotnetcontext

Gaurav RautTuesday, June 16, 2015 8:28 AM

Thankx It helped me , Configuring the httpd.conf was difficult for me .

Manoj Kulkarni - Dotnetcontext

Manoj KulkarniFriday, June 19, 2015 8:01 PM

Thank you Gaurav for the feedback

Add a new comment