Skip to content
Home » Install WordPress on Localhost With This (5 easy steps)

Install WordPress on Localhost With This (5 easy steps)

install wordpress on localhost

WordPress is one of the most popular software for creating websites. It powers more than 40% of websites on the internet. And almost every day more than 500 websites are built with WordPress, and many beginners jump into learning WordPress every day. Learning WordPress is so easy, But it requires web hosting or a web server. However I’m telling you, you don’t need to buy any web hosting for learning WordPress. You just need to install WordPress on a local server. But Installing WordPress without web hosting is a little bit tricky. Don’t worry, In this article, I will show you a step-by-step guide on how to install WordPress on localhost easily.

What are we going to learn? We are going to learn how to Install WordPress on localhost with this (5 easy steps).

  1. Download & Install a Local Server on your Computer
  2. Run the Module on the XAMPP Control Panel
  3. Download WordPress and Add WordPress files into the XAMPP
  4. Create a Database
  5. Run the WordPress installer and login to WordPress admin dashboard

Note: Follow every steps of this article, don’t skip any steps. if you skip any step of this article you will not be able to install WordPress on localhost succesfully.

Why do you need to Install WordPress on localhost?

Most people install WordPress on localhost for learning purposes or testing purposes. Beginners can learn WordPress through installing it on localhost without any premium web hosting. Or developers can test their project through localhost before publishing it on the web. For example: if you want to build a website on WordPress, you can test or check how things work, before you live your website on the webserver or web hosting. This is why you need to install WordPress on localhost.

But the problem is no one can’t see your website, because localhost is only installed on your PC. Localhost helps people to test or learn WordPress. It is the greatest way to start with WordPress and verify your skill

(5 easy steps) to install WordPress on localhost

Installing WordPress is so easy with premium hosting, almost every Web Hosting company has a one-click WordPress installer. But when it’s come to installing WordPress on localhost, there is some technical stuff. To install WordPress on localhost, you will need to create databases, put WordPress files on the localhost, and there are also many things you need to do. Don’t worry, I will show you step-by-step how things work and how to do them.

So let’s start with the first step:

Step-1: Download & Install a Local Server on your Computer

At first, you need to download a software called XAMPP from apachefriends.org/download, go to the link choose your operating system and click download. And it will automatically download the latest version of the software for your device. And it will take some time to install because the file size is about (165 MB), So you have to be a little patient.

install wordpress on localhost

When the download is finished, go to the folder where you downloaded the XAMPP installer, then run the XAMPP setup. After running it, you will see this XAMPP setup wizard on your screen. Just click on next.

install wordpress on localhost

Then you will see this Component checkbox wizard, just select PHP or MySQL and uncheck all others.

install wordpress on localhost

Then you will see this wizard, here you can select a location for installing the XAMPP. You can select any folder you want. But I suggest you let it default. Select a folder location and click the next button.

install wordpress on localhost

After selecting the folder and clicking the next button, you will see this language wizard. Let it default and click next.

install wordpress on localhost

And then you will see this Bitnami wizard, again let it default and click next.

install wordpress on localhost

Then you will see the main XAMPP installer wizard on your screen, it will take some time to install. When the installation is complete, click next.

install wordpress on localhost

Then simply click finish. And the XAMPP was successfully installed on your pc.

install wordpress on localhost

Let’s move to the next step.

Step-2: Run the Module on the XAMPP Control Panel

After finishing the installation it will take you automatically to the XAMPP control panel. In the XAMPP control panel, you will see these two modules:

  • Apache
  • MySQL

Start these two modules by clicking the Start button.

install wordpress on localhost

After starting the module you should see the module status green.

install wordpress on localhost

If you see the green status on Apache and MySQL, you have successfully done so.

Step-3: Download WordPress and Add WordPress files into the XAMPP

After installing or setting up the local server on your computer, you will need to download the WordPress on your computer, and put it into the XAMPP. So to download WordPress, go to wordpress.org/download and scroll down, then click on the Download button.

install wordpress on localhost

When the download is finished, extract the zip folder. After extracting the folder, go inside the folder and copy all the files and folders inside it.

install wordpress on localhost

After copying all the files and folders, go back to the XAMPP folder where you installed it. Inside the XAMPP, you will see a folder called htdocs.

install wordpress on localhost

Open the htdocs folder, and create a new folder inside it, you can enter any name of the folder, in my case it is tutorial.

install wordpress on localhost

And then go inside the folder that you created, then paste all files and folders here that you copied from the WordPress folder.

install wordpress on localhost

When all the files and folders are pasted, you are done. Now let’s go to the next one.

Step-4: Create a Database

To create a database, go to the XAMPP control panel and click on the admin button as you can on the picture below.

install wordpress on localhost

And it will redirect you to PHPMyAdmin. Where you can create a database for WordPress. After entering PHPMyAdmin, click Database on the top left corner of the menu, which you can see in the picture.

install wordpress on localhost

Then enter a database name, you can give any name, remember the name because it will be needed for the next step.

When the database was successfully created your work is done, let’s move to the next and final step.

Step-5: Run the WordPress installer and login to WordPress admin dashboard

At first, open your favorite web browser, and search localhost/the folder name that you created inside htdocs. In my case, it is localhost/tutorial.

install wordpress on localhost

After entering the URL on the search box, you will see this type of interface on your screen.

Click continue, and then click Let’s go! And you will see this interface, where you will need to fill in the database information, that you created in the database step.

Follow the instructions below and fill out the database information:

Your Database name will be which you created in PHPMyAdmin. And the user name will be root, and the password will be blank. Follow these bullet points below.

  • Database Name : Which you created in phpmyadmin
  • Username : root
  • Password : This will be blank
  • Database Host : localhost
  • Table Prefix : wp_

After filling in all the information, click the submit button. You will see a popup click Run the installer, then you will see the admin account creation section.

Fill this information by following the instructions below:

  • Site Title : Whatever you want
  • Username : root
  • Password : Enter a strong password
  • Your Email : Enter an email address

Then click install WordPress.

In the next section you will see Wp-admin Log In:

Then Log In using the admin information that you created in the previous section. After finishing the login it will redirect you to the WordPress admin dashboard:

Conclusion

Installing WordPress on localhost is somehow simple, but as a beginner, you will have a little trouble at first doing it. But if you practice more and more, you will become an expert. However, it is the greatest way to create a local WordPress site, you can create as many websites as you want with localhost, there is no limit.

If you find this article useful, you can share it, and if you have any trouble installing WordPress on localhost, let me know in the comments. I will try my best to solve your problem.

If you don’t know WordPress enough, you can read this article: What is WordPress and how does it work

Leave a Reply

Your email address will not be published.