How to install XAMPP & WordPress on Localhost


In this post, I will be showing you that how you can install XAMPP on your PC and Laptop and how can install WordPress in just few minutes and simple and easy steps.

In another post, I described that how you can install Bitnami & WordPress on localhost

So, If you want to code, develop, or test a WordPress theme or any functionality and you can’t do these things on your live site. Or on the other side, if you are a beginner and want to learn WordPress skills then its completely for you.

Table of Contents

If you like video guidance, Here I got you covered!!!

What is XAMPP?

XAMPP is a local server that you can install on your PC or Laptop to do an impression of an actual web server.

It’s a completely free of cost, no need to internet, open source Apache Server giving out with MariaDB (formerly MySQL), PHP, and Perl. XAMPP is available for all major operating systems and easy to install in just simple steps.

Here is what the XAMPP’s alphabets stand for:

  • X— cross-platform (X), as it supports multiple operating systems
  • A— Apache HTTP Server
  • M— MariaDB (formerly MySQL)
  • P— PHP
  • P— PERL

A part of central components that mentioned above, XAMPP comes with other useful tools also. Such as Mercury mail server, phpMyAdmin for DB Administration, Webalizer for web server log analysis, OpenSSL, Apache Tomcat for running java code, and FTP (FileZila) Server.

Let’s install XAMPP on windows

Step 1: Download XAMPP!

You can start download XAMPP Latest Version from Apache Friend’s website. The currently up to dated version of XAMPP is 8.0.2 with PHP 8.0.2 Version.

Note:  No matter that what OS (Operating System) you are using because the installation process is pretty much same. Just make sure that you’ve to download the related and supported and latest version of XAMPP according to your OS (Operating System).

Step 2: Installation Process

Once you download the XAMPP exe file, run the XAMPP Installer!

You would get this warning before installation, you’ve to click on “OK”!

Setup wizard, click on next!

Select the components that would like to install and use. If you wanna use XAMPP only for WordPress purposes, then you only need to check ApacheMySQL, and phpMyAdmin such as the given below screenshot.

Chose the installation directory or leave it as default (recommended).

After that, you’ve to select you preferred language and click on “next”.

Here you’ve to uncheck “Learn more about Bitnami” option and proceed to the next.

So, at the end of the installation process, you would might get a windows network security alert. You’ve to check the “Private Network” option and uncheck the public network.

Complete the setup and run XAMPP Control Panel.

Read the XAMPP Windows FAQs page for more info.

Step 3: Open the XAMP control panel

XAMPP provides us a very easy and simple user interface with all the modules of your localhost server. It allows you to start/stop every single module separately and you can access the Admin area, Config Files, and Log throw just 1 click.

On the XAMPP Control Panel, there is some functions buttons. So, I want to explain those buttons and their functionalities with you.

  • Config: To configure overall XAMPP settings.
  • Netstat: To Display all active TCP connections.
  • Shell: To start XAMPP in custom command (CMD).
  • Explorer: To open the XAMPP root folder in windows explorer.
  • Services: To show all windows services under Microsoft management consol.
  • Help: To link the Apache Friends support.
  • Quit: To quit XAMPP cPanel.

Step 4: Start the Apache & My SQL Modules

Click to “Start” for both modules (Apache and My SQL).

You can access the “Apache” and “My SQL” Admin Panel by clicking on the “Admin” button.

PHP My Admin Dashboard

So, now its ready to host any PHP Software.

Installing WordPress Locally With XAMPP on your Laptop or PC

Step 1: Create a new Database for your WordPress Installation

So, before installing the WordPress we need to create the new database.

Click on the “Databases” option near the top-left.

Create the new “Database” here with any name that like without space between the database name!

Step 2: Download and Install the WordPress

Now, you’ve to go in you windows explorer (C: XAMPP/htdocs/) folder and create a new folder by the name of your database name which you have created new in phpMyadmin and open it. And then, extract or unzip the WordPress Zip in it.

From here you can access your windows explorer
Go to “htdocs” folder!
Create a new folder by the name of your new DB name.
Open the folder and extract here the WordPress Zip File here that you downloaded!
Now you got all the things here, but after extraction the WordPress Zip. You’ve to cut all the files and folders from the WordPress folder and paste direct in (C: XAMPP/htdocs/your database name/paste here) and then delete the WordPress Zip and the WordPress folder from there.
Now, Find the “wp-config-sample.php” file and rename it to “wp-config.php” edit it further inside!
Open the file and find and change the following credentials which as shown in the screenshot!

Step by Step instructions given blow:

These code lines define your login details of your Database. Update it according to the instructions.

  • Replace “database_name_here” with the name of your database name.
  • Replace “Username-here” with “root” and edit “password-here” and keep it to be empty.
  • Save the file (Ctrl+S) and close.

After this, you’ve done the backend things.

Now, its time to open the browser and install the actual WordPress Dashboard.

Open the Browser and open this link (http://localhost/your-database-name-here/)!

After search, you might got this. Here you’ve to select your language and click on continue.

Enter your Site Title, Admin Username, and Password and click on Install WordPress.

And here we go 🙂

Put your login details here!

Congratulations… You finally successfully installed WordPress on your local server.


The motto of this post is to educate or teach you that how you can install WordPress on your local server. How to run all over the process and use how to use WordPress for learning, development, and for testing purposes. So, if you got any knowledge from my post, then more share it with your friends and with other public.
Thanks for Reading…