How to install WordPress on localhost: Hello everyone! Today in this article I will show you every step you need to know how to install WordPress on localhost.
Setting up WordPress on the localhost is one of the things which a beginner looks for when they start working with WordPress because for them it’s not possible to buy a domain name and hosting and set up all at once and start their blogging or business website on WordPress.
So they look for the process that can help them to install WordPress on localhost and set up a self-hosted WordPress website. This is also a very important step because this helps them to become familiar with the platform and the way things work on this beautiful platform.
This not only helps them to try and test every possible option offered by this platform. They try every possible themes and plugin they think might satisfy their needs. So without wasting time let’s start.
The 7 easy steps on how to install WordPress on localhost
Step 1 Installing XAMPP software
Search for XAMPP in your search engine and click the first link
You will be redirected to the site homepage and it will look something like this.
You just need to click and install the XAMPP installer according to the device you use. I am using windows so I will install the windows version. install it and you are ready for the next step.
Step 2 Install the WordPress Zip File
Go to https://wordpress.org/download/ in your search engine and you will be redirected to its home page will look like this.
Just click on the download button and you are ready for the next step
Step 3 Go to the htdocs folder in your XAMPP software
now make a folder of any name of your choice like you can see I have few folders named wordpress, wordpress1, thedailyheadliners, and others. For this, I will use the thedailyheadliners folder. You just need to make one for you. Make one and you are ready to move to the next step.
Step 4 Extract the WordPress zip file
In this step, you just need to extract the zip file of WordPress which you have just downloaded. To extract it click on the right button and you will see the extract all option.
Click on the extract all option and select the extract location by clicking on the browse button. Like I am using the thedailyheadliners folder which I told you in step 3.
Similarly, you just need to browse to your folder which you have created in the htdocs folder of the XAMPP file. It will look something like this.
image Just click on the extract button and you are ready for the next step
Step 5 Start the XAMPP software
Search for XAMPP and click on the XAMPP control panel and you will see Apache and MySQL will automatically start running and if not do it manually. Start both of them and this way you just started a local server on your machine.
Step 6 Setting up WordPress on localhost
Go to your chrome or default browser and type localhost and you will be redirected to its homepage. Now click on PHPMyAdmin and you will see something like this.
Click on the database option to create a database for your locally hosted files you can see I have named the database as wordpress1 and selected the collation option. You just need to do the same and hit the create button and you are ready for the most important and final step
Step 7 Installing WordPress on your localhost
Now type localhost/thedailyheadliners/wordpress1/wp-admin/ Here I’m typing thedailyheadliners after localhost because thedailyheadliners is the name of the folder which I have created for this project in the htdocs file. You just need to type your folder name after the localhost. here wordpress1 is the name of the database which I have created for this article as shown in the above steps. After doing this you will be redirected to something like this.
Click on continue and you will be redirected to an interface that looks like this.
fill the above field and click on the install WordPress button.
Note: never check the last option which says discourage search engines from ranking. If you check this option your site will be not be indexed and ranked by any search engines. In localhost it doesn’t matter whether you check this option or not but when you will do it real one when you purchase hosting make sure it remains unchecked. You will get this to get in the setting option of your website.
After filling the fields and running installation you will see a success message like this.
You have to just log in by filling in the same username and password which you have filled in the fields above. This way you have set up your own server where WordPress is now running as it does in a real server. Now play with every theme and plugin of your choice and improve your web designing skill.
Benefits Of Installing WordPress On Localhost
- You get the time to be familiar with the platform without investing any penny.
- You overcome the problem of buying a domain and hosting to learn WordPress which a lot of tutorials out there say you to do it.
- You get the benefit of testing themes and plugins
- You get abundant time to set up your website which satisfies your need in your localhost which you can later on directly migrate to make it your real website without rebuilding it.
- You get a platform to try any new feature on your website to see its outcome before applying it to your real website. This gives you a sense of security of breaking your main website while testing or giving it any new feature.