How to install WordPress on localhost (6 easy steps)

How to install WordPress on localhost (6 easy steps)

WordPress is fun to learn. Anyone who would like to try and create a website would certainly be encouraged with the easiest ways to install WordPress on your machine.

The first step in any website development process is often WordPress installation on your PC/LocalHost. The process of installing WordPress on the localhost (your Windows or Mac machine) is known as Localhost Installation.

Read this article for the complete guide to install WordPress on localhost.

Step 1. Download a Local Server Software

Three items need to be in order for WordPress to work:

  • A server-side programing language like PHP
  • A web server app. Apache is the commonest
  • A database management technology like MySQL

While all three of these platforms can be installed separately, things can be out of hand. You need to be an expert on the computer. So, let’s make things easier you can simply download XAMPP.



Step 2. Install XAMPP

The second step is important. You have to unzip it after you download the application. If the file is enabled, simply select or double-click the Install icon. The installation process is about to be found.

  • How to install WordPress on localhost (6 easy steps) 1
  • How to install WordPress on localhost (6 easy steps) 2
  • How to install WordPress on localhost (6 easy steps) 3
  • How to install WordPress on localhost (6 easy steps) 4
  • How to install WordPress on localhost (6 easy steps) 5
  • How to install WordPress on localhost (6 easy steps) 6

Step 3. Download WordPress

Before installing WordPress on your localhost, you must get the pre-required WordPress files.

Step 3. Download WordPress


After you finish downloading.

  1. WordPress comes in zip format, so you have to extract it first. That should be quite straightforward.
  2. Since we are using Windows, copy the extracted folder to C:\xampp\htdocs
  3. We recommend renaming the folder, though optional. We will change the folder to the “test website” for this tutorial.

Step 4. Open XAMPP and Start Apache and MySQL

Boot up XAMPP when the installation is finished.

Step 4. Open XAMPP and Start Apache and MySQL

Start Apache and MySQL.

Step 5. Time to create a Database

Creating a database will be your last step before you install WordPress. In order to create a database, you need to follow the step given by us.

  • Go to your local disk, where you saved the downloaded XAMPP file.
  • Select the htdocs folder and paste the WordPress latest version you have copied earlier.

You can always rename the WordPress folder but it is optional. For this tutorial, we have renamed the folder here ‘mytest’.

Check the below screenshot. You should remember the name you have selected for your database.

Step 5. Time to create a Database
  • Now, open a new tab on your browser and go to localhost/phpmyadmin
  • Select Database
  • Write the same name you have written on your local disk. And finally, click on the Create button. Your database will be created within a few seconds.
Step 5. Time to create a Database

Congratulations! You have successfully created your localhost database. Now, it is time to install WordPress on the localhost.

Note: You will launch both the Apache Web Server and MySQL Database in the Xampp control panel on your PC or on your Mac before moving into the last stage. You can not enter PHPMyAdmin without starting both.

Step 6- Install WordPress on Localhost

Let’s begin installing WordPress on your localhost. Open a new tab on your browser and write localhost/your given name (‘mytest‘ in our case) and hit on the Enter button.

Step 6- Install WordPress on Localhost

After this, you will be welcomed with the screen below. You need to click Let’s go!

Step 6- Install WordPress on Localhost
  • Provide your database name, you can write ‘root’ as user name, keep the password option blank- it’s better and you would find other fields filled up from earlier.
  • Click on Submit button
Step 6- Install WordPress on Localhost
  • Give a name to your site. we named our site WordPress ERP here. You can also keep your database name as your site’s name.
  1. Write your user name
  2. Give a strong password
  3. Write your personal e-mail address
  4. Carefully check the search engine visibility button. Otherwise, Google would start indexing your local site too!
  5. Click on the Install WordPress button!
Step 6- Install WordPress on Localhost

Thanks for staying with us. You have successfully installed WordPress on localhost.

Bishal Adhikari
Bishal Adhikari
As the Editor at Techinfo Nepal, Bishal Adhikari is a free-spirit with a passion for writing blogs, curious about the tech world and a learner.
Student | Learner | Editor
How did you feel after reading this article?
😃
Happy
0%
😂
Amused
0%
😍
In Love
0%
😮
Shocked
0%
😠
Angry
0%
😢
Sad
0%
Oops! There are no comments
Have something to say about this article? Add your comment and start the discussion.

Leave a Reply

Your email address will not be published. Required fields are marked *