Hello guys hope you are good and safe at your home. Today I am going to cover a most demanded topic - "How to install and use wordpress in localhost ?". Installing wordpress in local environment and making websites without buying any kind of web hosting server is very easy so read the full post and follow all the steps carefully to avoid any kind of mistake.

What is WordPress ?


For those  who don't know about wordpress, wordpress is a simple and easy tool for creating websites and blogs. Many people use wordpress in present time for making their website, a person who don't know anything about website development can also create his/her website easily in wordpress. One of the key feature of wordpress that is free and open-source. It is written in PHP language and uses MySQL as a database. You can create advanced websites in wordpress in a simple way. It also offers many plugins for making websites. Know more about wordpreess here.

Let's start setting up wordpress in local server.

Now follow these steps: -


Step 1: Install XAMPP

First you need to install a software XAMPP to run wordpress on your local computer. 


Now You will see a page from where you can download XAMPP for your desired Operating System (Windows, Mac, Linux). 


Now After downloading XAMPP follow these steps :

1. Go to the location where you have downloaded the file in you computer (Usually in downloads folder).

2. Now run the XAMPP installer now. Click on yes if any pop-up comes during the installation process.
As you click the downloaded file, a window will come in front of you. Don't worry just click Next.

3. Now a list will come in front of you from where you can check or uncheck items that you want to install, just keep it a default and click next.

4. Now you will be asked for location where you want to install XAMPP. Just keep it as default in C://xampp and click next.

5. Now you will see a window showing you info about bitnami. Keep the things simple and click next.

6. After all this you will see another window where "Ready to Install" is written. Now you need to click Next again.

7. Now you will see XAMPP installing in your computer. Wait for the process to complete.

8. If the installation is complete successfully you will see a window where you are asked "Do you want to start the control panel now ?". Check that box and hit Finish button.

9. After pressing Finsish button you need to choose the language for XAMPP. Now select language and click save.

10. Awesome! the XAMPP  setup is successfully complete. Now you can see the control panel.

If you got any error try this process again or you can tell us in comment section also.

Step 2: Install Wordpress

Now you need to install wordpress.

Go through this Link: https://wordpress.org/download/

Scroll below and you will see something like this


Click the Download button.

After this a zip file will start downloading.

Now follow these steps: 

1. Go to the location where you downloaded the zip file (Usually in Downloads folder).

2. Extract the zip file in the same directory.

3. You will see a new folder created now. Open that folder.

4. Inside that folder you will se a folder name "wordpress". Copy that folder.

5. After that go to the folder where you have installed XAMPP (C://xampp). Now in that xampp folder you will see a htdocs folder. Open htdocs.

6. Now paste the copied wordpress folder in htdocs folder.

Now you are all set to use wordpress.

Step 3: Launch XAMPP control panel

Now you need to open the XAMPP control panel again that we have installed in Step 1. After opening that you need to start Apache and MySQL like this 


After doing that your apache and MySQL will start.

Now open your browser and go to http://localhost/wordpress.

Step 4: Setup wordpress

If you have done all the steps correctly you will see your wordpress site running on  http://localhost/wordpress.

Now when you open your site for the first time you will see something like this :


Here you need to select language and click Continue.

Now you will see some thing like this



Now before clicking on Let's Go we need to create a database for our wordpress site in PhpMyAdmin.


Now you will see this


Now you can see all of your databases, some of them are created by default. Now in the upper section click on Databases.

After that you need to create a new database name "wordpress" and click on create. And you will see that database wordpress has been created.


Now go back to this page.


Here click on Let's Go.

Now you will asked for the following details


Now in this page enter "wordpress" in the database name because you have created you database in PhpMyAdmin with this name. Your username will be root and password will be blank and keep other things as default and click Submit.

After all you will redirected to this page



In the Site Title enter name of your site and in username enter your username and in password enter a strong password and fill your email also and don't check the box with Search Engine Visibility. Remember your username and password because it will required later for login.

Now you will see this.



Now after getting this success page Installation of wordpress is complete. Now click on Login.

Now you need to login.



Fill your username and password and also check the Remember Me box. 

All right, after entering correct username and password you will see your Dashboard.


That all, now your wordpress website's setup is complete you can see it running on http://localhost/wordpress.




To customize your site and to make it better you can watch video tutotials for free and explore more.

Wow, Isn't is Awesome, your site is running without spending any money in buying any kind of hosting.

Later when you become a wordpress master and ready to publish your site you can buy a wordpress hosting at Bluehost and export your website to your hosting server with the help of a wordpress plugin name - "All in one WP migration.".

Thats all for this post. If you face any problem please let us know in the comment section. Thanks for reading.

Thanks