# How to Install XAMPP and WordPress Locally on Windows PC

- Link: https://technotaught.com/how-to-install-xampp-and-wordpress-locally-on-windows-pc/
- Published: 2019-07-29T21:36:29+05:30
- Author: Ashishkumar Vishwakarma

Before how to Install XAMPP and WordPress Locally on Windows PC we should know what
is WordPress and Xampp.

### What is WordPress?

WordPress is the simplest, most popular way to create your website or blog. There
are many Websites on the Internet which is powered by WordPress.

**WordPress** is a free and open-source content management system based on PHP and
MySQL. Which means that anyone can use or modify the WordPress software for free.

WordPress makes building a website accessible to anyone – even people who aren’t
developers.

### What is Xampp?

Xampp is a free and open-source, cross-platform web server solution stack package.
XAMPP stands for Cross-Platform (X), Apache (A), MariaDB (M), PHP (P) and Perl (
P).

It is a simple, lightweight Apache distribution that makes it extremely easy for
developers to create a local web server for testing and deployment purposes. Everything
needed to set up a web server – server application (Apache), database (MariaDB),
and scripting language (PHP) – is included in an extractable file. XAMPP is also
cross-platform, which means it works equally well on Linux, Mac, and Windows. Since
most actual web server deployments use the same components as XAMPP, it makes transitioning
from a local test server to a live server extremely easy as well.

## How to Install XAMPP and WordPress Locally on Windows PC

#### Step 1: Download and install XAMPP on your computer

The first step is to Download the XAMPP file and Install it on your PC and open 
it. If you don’t know, follow the steps below.

## How to install XAMPP on your PC?

Go to Xampp page by clicking[ here](https://www.apachefriends.org/download.html).
You see this Download Xampp by clicking on the red box Download button.

![](https://i0.wp.com/www.technotaught.com/wp-content/uploads/2019/07/xamp.png?fit
=800%2C541&ssl=1)

Xampp page

 * Once the download finishes, run the file. If you’re running antivirus software
   on your PC, you might get a warning like this, Simply click on YES.
 * Once you get through all of the prompts, you should see the standard installer
   screen.

![How to Install XAMPP and WordPress Locally](https://technotaught.com/wp-content/
uploads/2019/07/xamp-1.png)

How to Install XAMPP and WordPress Locally

Just click **Next** to continue.

You can choose which components to install. To install XAMPP and WordPress**, **
You can click on every component, but this two-component must be there on your PC.

 * **MySQL**
 * **PHPMyAdmin**

![How to Install XAMPP and WordPress Locally](https://technotaught.com/wp-content/
uploads/2019/07/xamp2.png)

How to Install XAMPP and WordPress Locally

Just click **Next** to continue.

You can now select which folder to install XAMPP. You can leave it as the default:

![How to Install XAMPP and WordPress Locally](https://technotaught.com/wp-content/
uploads/2019/07/How-to-Install-XAMPP-and-WordPress-Locally-4-.png)

How to Install XAMPP and WordPress Locally

On the next screen, uncheck the box and don’t click on any link.

![How to Install XAMPP and WordPress Locally](https://technotaught.com/wp-content/
uploads/2019/07/How-to-Install-XAMPP-and-WordPress-Locally-5.png)

How to Install XAMPP and WordPress Locally

Just click **Next** to continue.

![How to Install XAMPP and WordPress Locally](https://technotaught.com/wp-content/
uploads/2019/07/How-to-Install-XAMPP-and-WordPress-Locally-6.png)

How to Install XAMPP and WordPress Locally

Just click **Next** to continue and you are ready to run the install. The install
process might take a few minutes:

 

![How to Install XAMPP and WordPress Locally](https://technotaught.com/wp-content/
uploads/2019/07/How-to-Install-XAMPP-and-WordPress-Locally-7.png)

How to Install XAMPP and WordPress Locally

Once it finishes, you can launch the control panel to start working with XAMPP:

![How to Install XAMPP and WordPress Locally](https://technotaught.com/wp-content/
uploads/2019/07/How-to-Install-XAMPP-and-WordPress-Locally-8.png)

How to Install XAMPP and WordPress Locally

#### Step 2: Start the Control panel and test your server

Every time you need to open the control panel of xampp before you open your server.

Start the Apache and MySQL because you need to connect the internet using port 80
and database using SQL.

![](https://technotaught.com/wp-content/uploads/2019/07/xamp-control-panel.png)

![](https://technotaught.com/wp-content/uploads/2019/07/xamp-control-panel-running.
png)

And now type `http://localhost/` in the web browser of your choice to access the
xampp board. This means that your xamp server is working.

![](https://i1.wp.com/www.technotaught.com/wp-content/uploads/2019/07/image-50.png?
fit=800%2C484&ssl=1)

 

But now it’s time to install WordPress on XAMPP. So here’s how to get a WordPress
site up and running on XAMPP.

## How to install WordPress on XAMPP

#### Step 3: Add the WordPress files

To download WordPress file you need to go to[ wordpress.org](https://wordpress.org/download/)
and download the latest version of WordPress.

![](https://i2.wp.com/www.technotaught.com/wp-content/uploads/2019/07/image-51.png?
fit=800%2C508&ssl=1)

After Download WordPress.zip. The file is in the compressed mode, you need to uncompressed
the file.

 * Copy the uncompressed the file and paste to C:\xampp\htdocs

![](https://i1.wp.com/www.technotaught.com/wp-content/uploads/2019/07/How-to-Install-
XAMPP-and-WordPress-Locally-9.png?fit=800%2C605&ssl=1)

How to Install XAMPP and WordPress Locally 1

Go to C:\xampp\htdocs

![](https://i2.wp.com/www.technotaught.com/wp-content/uploads/2019/07/image-52.png?
fit=800%2C325&ssl=1)

In this, you can see the copied file of WordPress. You can rename the file also.

Example:- Name of the file is **Tech**

Here you find the data of the WordPress file.

![](https://technotaught.com/wp-content/uploads/2019/07/image-53.png)

How to Install XAMPP and WordPress Locally

#### Step 4: Create a database for WordPress

Next, you need to create a MySQL database for your WordPress install. To do that,
launch PHPMyAdmin from your XAMPP control panel:

Go to the control panel and start Apache and MySQL.

![xamp-control-panel-running](https://technotaught.com/wp-content/uploads/2019/07/
xamp-control-panel-running.png)

xamp-control-panel-running

After the start go to a web browser and type “localhost/phpmyadmin/”f

![](https://i0.wp.com/www.technotaught.com/wp-content/uploads/2019/07/How-to-Install-
XAMPP-and-WordPress-Locally-10.png?fit=800%2C426&ssl=1)

How to Install XAMPP and WordPress Locally

Then click on **Databases** at the top:

![](https://i2.wp.com/www.technotaught.com/wp-content/uploads/2019/07/How-to-Install-
XAMPP-and-WordPress-Locally-11.png?fit=800%2C426&ssl=1)

How to Install XAMPP and WordPress Locally

And enter a name for your database and click **Create**. Your name can be anything–
just remember it because you’ll need it for the next step:

![](https://technotaught.com/wp-content/uploads/2019/07/How-to-Install-XAMPP-and-
WordPress-Locally-12.png)

#### Step 5: Install WordPress locally via the on-screen installer

When you visit your test site, you should see the normal WordPress installer. Remember,
your test site link is `http://localhost/FOLDERNAME`:

Enter the Language and click continue.

![](https://i0.wp.com/www.technotaught.com/wp-content/uploads/2019/07/How-to-Install-
XAMPP-and-WordPress-Locally-13.png?fit=800%2C424&ssl=1)

The only step where this process will differ from a normal install is the database
details. When you get to the database details, enter them like this:

![](https://i2.wp.com/www.technotaught.com/wp-content/uploads/2019/07/How-to-Install-
XAMPP-and-WordPress-Locally-14.png?fit=800%2C609&ssl=1)

 * **Database Name =** Name of the database you created in PHPMyAdmin, I created“
   WordPress”
 * **Username =** “root”
 * **Password =** leave blank or write

![](https://technotaught.com/wp-content/uploads/2019/07/How-to-Install-XAMPP-and-
WordPress-Locally-19.png)

Click on submit. If clicking on submitting this above error is displayed, then go
down and check **how to Solve an Error establishing a database connection** or **
Continue**.

![](https://i2.wp.com/www.technotaught.com/wp-content/uploads/2019/07/image-55.png?
fit=800%2C432&ssl=1)

How to Install XAMPP and WordPress Locally

---

**After pressing continue.**

![](https://i0.wp.com/www.technotaught.com/wp-content/uploads/2019/07/How-to-Install-
XAMPP-and-WordPress-Locally-20.png?fit=800%2C297&ssl=1)

Click on Run the installation.

 * Give the site title, you can change after also.
 * Type username and password as it is.
 * Type email-id.

![](https://technotaught.com/wp-content/uploads/2019/07/How-to-Install-XAMPP-and-
WordPress-Locally-21.png)

Click on**_ Install WordPress_**.

After, you see this: **The site is experiencing technical difficulties. Reload the
page**.

Type the username and password as it is

 

![](https://technotaught.com/wp-content/uploads/2019/07/image-56.png)

Click on login.

This is your Dashboard. Here you can change according to your needs

![](https://i0.wp.com/www.technotaught.com/wp-content/uploads/2019/07/dashboard.
png?fit=800%2C404&ssl=1)

How to Install XAMPP and WordPress Locally

This is your site.

 

![](https://i2.wp.com/www.technotaught.com/wp-content/uploads/2019/07/site.png?fit
=800%2C404&ssl=1)

How to Install XAMPP and WordPress Locally

## Step 6: **How to Solve an Error establishing a database connection**

If you see this then follow the command as it is.

![](https://technotaught.com/wp-content/uploads/2019/07/image-55-1024x553.png)

This Error establishing a database connection means your database is not connected
properly to MySQL. In order to resolve this problem you need to create a user account
and connect to WordPress.

To create a user account first go to the browser and type “localhost/phpmyadmin/“
in that go to the User account.

![How to Install XAMPP and WordPress Locally](https://technotaught.com/wp-content/
uploads/2019/07/How-to-Install-XAMPP-and-WordPress-Locally-15-1024x504.png)

How to Install XAMPP and WordPress Locally

In that go to **Add a user account**.

![How to Install XAMPP and WordPress Locally](https://technotaught.com/wp-content/
uploads/2019/07/How-to-Install-XAMPP-and-WordPress-Locally-16-1024x513.png)

How to Install XAMPP and WordPress Locally

 * Type User name and Password same as above.
 * IN Hostname type: – **localhost**
 * Remember to click in a **checkbox field**.

![How to Install XAMPP and WordPress Locally](https://technotaught.com/wp-content/
uploads/2019/07/How-to-Install-XAMPP-and-WordPress-Locally-17-1024x789.png)

How to Install XAMPP and WordPress Locally

![](https://technotaught.com/wp-content/uploads/2019/07/How-to-Install-XAMPP-and-
WordPress-Locally-19.png)

How to Install XAMPP and WordPress Locally

After this, the process is the same as **Step 5**.

### To go to the site again 

 * Search in your PC ⇒ Xampp control panel 
 * Open it
 * Now go to chrome in URL type: /WordPress/login and Enter.
 * Your login page 
 * Types username and password and submit.
 * Now your site is open and you are ready to edit.

This way you see how to Install XAMPP and WordPress Locally on [Windows PC](https://www.computerrepairsspringfield.com.au/).
I found this tool useful because it is speedier and more effective to create the
best websites.

Also View:- How to Install a Bitnami WordPress.How to Install a Bitnami WordPressAlso
View:- How to Install a Bitnami WordPressAlso View:- How to Install a Bitnami WordPressAlso
View:- 

Also, View- [Best a](https://technotaught.com/best-android-apps-all-time/)[n](https://technotaught.com/best-android-apps-all-time/)
[droid apps all the time](https://technotaught.com/best-android-apps-all-time/)

 

### Share this:

 * [  X ](https://technotaught.com/how-to-install-xampp-and-wordpress-locally-on-windows-pc/?share=twitter)
 * [  Facebook ](https://technotaught.com/how-to-install-xampp-and-wordpress-locally-on-windows-pc/?share=facebook)
 * [More](https://technotaught.com/how-to-install-xampp-and-wordpress-locally-on-windows-pc/#)

 * [  WhatsApp ](https://technotaught.com/how-to-install-xampp-and-wordpress-locally-on-windows-pc/?share=jetpack-whatsapp)
 * [  LinkedIn ](https://technotaught.com/how-to-install-xampp-and-wordpress-locally-on-windows-pc/?share=linkedin)
 * [  Email ](https://technotaught.com/how-to-install-xampp-and-wordpress-locally-on-windows-pc/?subject=%5BShared%20Post%5D%20How%20to%20Install%20XAMPP%20and%20WordPress%20Locally%20on%20Windows%20PC&body=https%3A%2F%2Ftechnotaught.com%2Fhow-to-install-xampp-and-wordpress-locally-on-windows-pc%2F&share=email)
 * [  Reddit ](https://technotaught.com/how-to-install-xampp-and-wordpress-locally-on-windows-pc/?share=reddit)
 * [  Tumblr ](https://technotaught.com/how-to-install-xampp-and-wordpress-locally-on-windows-pc/?share=tumblr)
 * [  Pinterest ](https://technotaught.com/how-to-install-xampp-and-wordpress-locally-on-windows-pc/?share=pinterest)
 * [  Telegram ](https://technotaught.com/how-to-install-xampp-and-wordpress-locally-on-windows-pc/?share=telegram)
 * [  Print ](https://technotaught.com/how-to-install-xampp-and-wordpress-locally-on-windows-pc/#print?share=print)

### _Related_
