In this tutorial, I will explain you how to install WordPress in your local host on Windows operating system. PHP websites unlike a static HTML website, runs only on a server. WordPress was built using php as a server side scripting language. In order to install WordPress in your local machine you need to install a server.
Installing WAMP:
WAMP is a server that runs on Windows platform. The acronym WAMP stands for Windows(Operating system), Apache(The actual server), MySQL(database) and PHP(server side scripting language).
Now i will explain installing WAMP server and WordPress, step by step.
Step 1 :
Download WAMP server from here
Step 2:
Installing WAMP is an easy task.Just double click on the downloaded file and follow the instructions.
Step 3:
After the installation, You can see a ‘W’ icon in system tray as well as a folder named ‘wamp’ in your C: drive(Assuming your primary drive is C ).You can start WAMP from the start menu. Now navigate to the path C:wampwww. The WordPress installation files should reside in this file path i.e inside the ‘www’ folder.
Step 4:
Download WordPress from here. Unzip the WordPress folder inside the ‘www’ directory.
Step 5:
Now you need to create a database, in order to install WordPress. Open your favorite browser and type this in the address bar localhost/phpmyadmin. php myadmin interface will look like this.
Type your desired database name in the create new database field.Then click the create button.
! important:These are the configuration info you need, to install WordPress.
- Database name -The one you created in the above step.
- Database username -The default user name for WAMP is root
- Database password-you can either leave the password as blank or you can set a password by navigating to privileges tab in php-myadmin interface, then scroll down to see the change password section.
- Database host-Your database host is localhost.
Now make a note of the above four things in a text file, before you proceed to the 7th step.
Step 6:
You have successfully created a database. Now open your browser and navigate to the location of WordPress folder i.e localhost/wordpress (assuming you haven’t changed the folder name. You can have any name for the folder, but you need to specify the same name instead of wordpress in the URL). Now you will be asked to Create a configuration file. Just click on it to proceed to next page.In the next page you will be asked to fill the configuration info.
Step 7:
Now in the next page, replace the default values, with the one you have in the text file. Leave the table prefix as it is. Then click submit. Now if you have done everything perfectly, you will see the same message shown in this screenshot. Then click the run and install button to proceed to next page.
Instead if you receive an error message, there is something wrong with your database info. Check whether your database name, username, password and host info are correct. Then proceed again.
Step 8:
In the next page, you will be prompted to set the Site Title, Username, Password and E-mail. Fill all the info and click install WordPress. It will tell that you have successfully installed WordPress. Now log in to view the WordPress dashboard. All the best.