How to install WordPress on Local server Xampp? banner

How to install WordPress on Local server Xampp?

Publised 15/5/2022

Hello readers, in this blog, I am going to tell, How I installed WordPress on the local server Xampp for the first time within 5 minutes without any technical skills. So, If you don’t know or didn’t read “How to Install Xampp on your computer for WordPress” then click here to read that article.

Why Install WordPress on Localhost?

Building a WordPress website in localhost is basically for personal purposes, not for users or audiences. You are the only one who can see the website. So, why does anyone want to create a site in localhost?

In WordPress, the local host is just starting the process of developing and testing WordPress websites in a local environment.

Localhost helps you to check and experience the updates, changes, settings, etc. So, You can be sure about the final outputs.

Basically, most WordPress developers prefer to work in localhost before making their website live for a safer side. If everything works fine, then they move from localhost to the webserver. In case there are any issues, they correct them in localhost itself before making the site live.

There are the following tools to set up your local host for WordPress. They are

  • XAMPP
  • MAMP
  • WAMP
  • Desktop Server

Which localhost is best for WordPress?

I used Xampp to install WordPress on the localhost at the beginning, even right now I am using it. This localhost server is very easy to use and has overall good support. You can install WordPress using WAMP, LAMP, or MAMP, in the same way.

Install WordPress on Localhost

Okay now, let’s start with the first step.

First, to download WordPress visit the WordPress.org website and click on the ‘Download WordPress’ button.

Extract or unzip WordPress in the htdocs folder of Xampp. In my case, it is C:/xampp/htdocs

After extracting, delete the zip file or you can move this Zip file to another folder. Rename it to whatever you like, but it’s recommended to give this folder the name of your site. I’m going to call this installation of Wpguide.

Now, open Xampp Control Panel and click on start for MySQL and Apache.

Install WordPress on Localhost

Now open your favorite web browser and type localhost/your website name. In my case, my website name is wpguide. So, I will type localhost/wpguide. You will see a page like this:

Choose your language and then click on continue. A new page will be shown below, Here below page will tell you that WordPress needs a database name, database username, password, and host information.

As you click on Letsgo, the new page will come to show up like below. Here, You have to rewrite your database name instead of WordPress.

For that, first, you have to create a database.

Now, to create a database in MySQL, open Xampp Control Panel and click on Admin of MySQL. You can do this thing in a different manner also, just open a new browser tab and visit localhost/phpmyadmin/. This will launch the phpMyAdmin app which comes pre-installed with XAMPP. It allows you to easily manage your databases.

Click on the database and type the name of the database. Here, You must have written the same name as you have written on your local disk. And finally, click on the Create button. Your database will be created within a few seconds. Now again come back to this page, and write your database name.

Write user name root and left the password blank. Leave the remaining thing as it is and then click on submit.

All right, Finally! You’ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, it’s time to click on run the installation.

The final step of the installation

  • Give a name to your site. I named my site Wpguide here. You can also write your database name as your site’s name.
  • Write your user name
  • Give a strong password
  • Write your personal e-mail address (don’t write the email which you are going to use in live server
  • Carefully check the search engine visibility button. Otherwise, Google would start indexing your local website too!
  • And, finally, click on the Install WordPress button!

Check out that Your Site is now live on the local server. Now it’s time to check your local site. Look it here, how does it look like or how would it work?

This is your or admin panel, from where you would control everything.