How to Install WordPress on Xampp

Posted by
How to Install WordPress on Xampp (1)

Install WordPress Locally on Xampp

Install WordPress on Xampp is a great idea if you want a development site that can be used for a different purpose or practice without having a domain and hosting. The advantage of installing WordPress on Xampp on a laptop or computer is that you can practice WordPress from your computer without having to buy domain-hosting. Without delay it will be no problem even if you don’t have an internet connection, you can practice website development with WordPress.

XAMPP lets you run a website from your very own computer And once you get it set up, you can spin up a new WordPress install with just a few clicks. Before we jump to the install process there have been several questions which should be coming in mind some of us that,

  1. What is Xampp?
  2. What are the benefits of it?
  3. Is it necessary to install WordPress on Xampp?
  4. What if I don’t install it locally?

[Note: If you need a more general guide on installing WordPress in other environments then check out our article]

How to install WordPress using softaculous
How to install WordPress using FTP

What is Xampp?

XAMPP is open-source free software. XAMPP software package contains Apache distributions for Apache server, MariaDB, PHP, and Perl. And it is localhost or a local server. Xampp stands for:

There are many websites that we visit come from a server. Now, what is a server? When doing web development, you have to keep a website somewhere. It’s called a server. In a server such as Apache or Nginx is installed on the server. We can install Apache or Nginx on our computer and use our computer as a server. To run Apache server, Mysql, PHP  you can use Xampp to make your computer a server.

XAMPP is a cross-platform which is accessible for Windows, Mac, and Linux based PC.

Benefits of using Xampp:

For testing new themes and plugins, trying these on the localhost is an intellectual idea in web development using WordPress. Moreover, if you want to learn how to use WordPress for your blog or website, trying it on the localhost is the best method. There is no disturbance with purchasing domain-hosting and it’s a free tool.

Is it necessary to install WordPress on Xampp? & What if I don’t install it locally?

It’s not necessary for everyone who already a master of using WordPress or a beginner. But, I will recommend a beginner that before you have an online version, doing it locally would be the right way to go. Because it will help you to know perfectly WordPress configuration and which themes and plugins would be better for your website.

If I don’t install it locally then the software will not work properly. To install WordPress on Xampp properly follow the showing steps.

Let’s Install WordPress on Xampp :

Step 1: Download and install XAMPP on your computer

First, You need to visit the XAMPP Website ( and choose your operating system icon click on the download button. You need to wait some minutes until download completely.


Xampp Download

After finishing the download then run the software like an as usual software. Go for the run Xampp.

Install Xampp

Next, You just click Yes to continue the installation. It’s depending on your Pc Configuration also you might get a prompt about User Account Control.

Just Click Next Button. Hence, it will ask you where to put it. You can put it into your local disk.

You need to wait some moment as long as it’s finishing.

Once it’s installation Finishes, You can able to launch the control panel and start working with XAMPP.

Xampp Installing

========== XAMPP Install Completed ==========

Step 2: Run the Modules from the Xampp Control Panel

Second, You’ll need to run two modules:

  • Apache
  • MySQL

You can start both modules from the XAMPP control panel:

How to Install Xampp and WordPress run two module

When it’s run then you get green status.

XAMPP Green Status

Remember one thing if you stop the actions of both modules then it will unable to show your website in your browser so keep that in mind.

========== XAMPP Server Running ==========

Step 3: Create a database for your WordPress website

You’ll need to open your favorite browser tab and visit localhost/phpmyadmin/. 
You would need to click on Databases, provide a name for your new database and do not give any space, then click on the create button to continue.


Database Name

Step 4: Create a User Account 

Go the top of the PHP my admin you can see  a user account icon click it

Next, Add User Account

Create a user account with proper information.

you have to remember your password it will be needed for further process and make sure you check the “check all” icon. Then click go at the below at the screen.

Now, You have a user account.

Step 5: WordPress site install with local XAMM server

You need to go to website and download the latest version WordPress.

Download WordPress

Now you need to navigate the Windows folder where you installed XAMPP. For me, that’s c://xampp. It should be something similar for you.  Then you can able to see a subfolder named htdocs . Unzip your WordPress and move it into htdocs.


htdocs Folder

Rename the folder of WordPress to your choose name as a ( test website ) and put all the unzip files into it. Now, go into your test website folder, find the wp-config -sample.php file,

Open the file with any text editor, I will open it into my note pad, scroll down until you see the following lines:

Put your database name, user name, and password correspondingly. After that rename the file wp-config-sample into wp-config only.

Step 6: Test Your Website

Open your browser, and search in the URL localhost/testwebsite/ or, localhost/your wp file name/ 

When your website got visible then it looks empty due to not having any data into it, only the file shows you your file name simply click it.

Then you see this screen below.

WordPress Language Set

Place your suitable language. By default, it will be English.

Next step, you need to fill up some input information that was created already.

  • Database Name = Name of the database you created in PHPMyAdmin ( test website )
  • Username = which was given
  • Password = which was given
  • Your Email 

Install WordPress Using Xampp Information

Now, install WordPress into a server by clicking install WordPress.

Give your username and password for login into WordPress.

WordPress Install Success

Now you are done.

If you want to come directly then go to URL and type/localhost/textwebsite/wp-admin and use the username/password that you entered during the installation WordPress dashboard.


While installing WordPress and Xampp there can be some troubleshooting common issues, if you face any trouble then leave a comment for us we will help you and also let us know in the comment how do you like about this article is it helpful for you or not?

You may also like:

what is WordPress


Leave a Reply

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