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.
1. Install the WAMP Server. After installation small icon will appear in task bar as shown below (F: 1).
2. Now click on that icon and select the Localhost option to launch WAMP server as shown below (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\conf) option under Apache menu as shown below (F: 3).
4. It will open up a file. Locate the following lines in that file.
#Listen 220.127.116.11: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).
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)
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).
8. Select the database option as shown below (F: 7) to create a new database.
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).
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.
11. After clicking on Continue button, a page will appear as shown below (F: 10). Click on Let`s Go button.
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.
13. After clicking on Submit button, we will get a page as shown below (F: 12). Now click on Run the Install button.
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.
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.
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).
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.
Thankx It helped me , Configuring the httpd.conf was difficult for me .
Thank you Gaurav for the feedback