How to Install WordPress on Xampp for Windows 10 (Step By Step Tutorial)


If you are looking for an easy way to set up WordPress on your computer and develop your website on localhost, then you have come to the right place. In this tutorial, we will give you step-by-step instructions on how to install WordPress on XAMPP for Windows 10.

We’re going to set up a local server on our computer so that you can use WordPress to build stunning websites without having to pay for a domain or hosting.

Installing XAMPP on Windows 10 is easy but can be tricky if you are unfamiliar with it.

Follow this tutorial to get started. Follow these steps, and you will have a WordPress website on your computer in no time.

1. Download and Install XAMPP on Your Computer

The first step is to get the XAMPP Windows installer from Apache Friends. Download the most recent XAMPP version for your system.

The installer will be directed by the website based on your system.

This will take some time depending on your internet connection.

How to Install WordPress on Xampp

Once the installer has been downloaded, open it and follow the installation wizard.

Depending on your Windows configuration, you may also receive a User Account Control (UAC) prompt. Just click “Ok” to continue.


When you successfully complete the warning, the welcome to XAMPP will appear, and you should click “Next” to continue.


Choose the component to install on the next setup; ideally, you only need MySQL and PHPMyAdmin. Other components, however, may be useful, so leave them all checked.


And click “Next” to continue

The next setup will be the installation folder, choose the file path for the XAMPP folder.


Choose the file path and click “Next” to continue.

Next, choose the language for your XAMPP.


After selecting your language, click “Next” again to continue. The setup ready to install will be next. Click “Next” to begin the installation.

The software will begin to install on your computer. It will take about a minute to two minutes for the installation to complete.


When the installation is finished, you can open the control panel and work with XAMPP.

You can also access the control panel by clicking “Start” and then “XAMPP Control Panel” or typing “Xampp” in the search bar.

2. Run the Modules

You have to run the Apache and MySQL modules to start the working process. Click the “Start” button adjacent to these modules to run them.


When you start the modules, they will turn green to indicate that the start was successful.

You can now check if your local server is operational by entering http://localhost/ into the web browser’s address bar.


If you followed the instructions carefully and everything went well, you should see something similar to what is shown above.

Next, let’s create a database for your website.

3. Create a Database for Your Website

To install WordPress successfully, you must first create a MySQL database. To do so, in the XAMPP Control Panel, click “Admin” next to MySQL to start PHPMyAdmin in your browser.

01-Launch the Database

You can create a new database from this point. To create a database, select “Databases”.

02-Click On Database

And enter the name of your database. You can enter any name you want. I will enter the name “MyWebsite”.

Finally, click “Create”. This will create a new database at the left corner panel.

03-Click On Create

4. Create a User

Now you need to create a user in the newly created database. So, choose the database you created and then click “Privilege”.


And click on “Add User Account”.


Fill out the login information as follows:

  • Username: Any name you want.
  • Host Name: Choose “Local” from the drop-down and “localhost” will automatically be selected.
  • Password: Enter any password you want or generate a password by clicking on the “Generate Password” button.

You are going to use the login information to install your WordPress, so keep it safe.

Make sure to click on the “Check All” button to select all the permissions for the user account.


Finally, click on “Go” at the bottom to finish creating the user.


You are now finished with the XAMPP setup; it is now time to install WordPress.

In the following section, we will look at how to install WordPress.

5. Download and Install WordPress

To download WordPress, head to the WordPress website and click on the “Get WordPress” button on the top-right corner of the page.


On the next page, click on the “Download WordPress” button to download the WordPress zip file onto your computer.


Next, find the downloaded zipped file on your computer. It will usually be in your downloads folder. Unzip it by right-clicking on it and selecting “Extract All”. This will unzip the WordPress folder onto your computer.

Open the folder, you should see contents like shown below.

Files In WordPress Folder

Next, create a folder in the XAMPP htdocs directory by going to C:-> XAMPP >> htdocs and creating a new folder. You can name this folder whatever you want. I will name mine “Mywebsite”.

Create a new folder in XAMPP HTDOCS

The next step is to move the files and folders from the WordPress folder into the folder you created. Mine is called “Mywebsite”.

To do this, open the WordPress folder and copy all the contents in that folder and paste them into the destination folder.

Head to your browser and enter your website’s URL into the address bar. Your website URL will look like this: http://localhost/folder

Remember, the folder in this URL is the one you created in the htdocs directory. So, mine looks like this: http://localhost/mywebsite

The WordPress installer wizard will appear. The first step is to choose the language you want to use on your website.


On the next screen, you will be asked to provide your database information. This is the database information you created earlier. Click on “Let’s go” to go to the next step.

On the next screen, you enter your database information. Enter your database name, username, and password. Leave the database host and prefix as they are.


And click “Submit”.

Click on “Run the Installation” on the next screen to continue.

On the next screen, provide your website’s information, which includes the site’s name, username, and password. You will use the username and password to login into your WordPress dashboard later, so keep it safe.

Provide your website's information

And click “Install WordPress”.

Next click on “log in” on the success screen.

Finally, log into your WordPress dashboard with your credentials.

Congratulations! You have installed WordPress on XAMPP successfully.

Let’s get to work!

Related: How to Build a Personal Website In 5 Minutes (The Easiest Way)

Explore Your WordPress Site

If everything goes well, you will be redirected to the WordPress Dashboard.

This is the first screen you will see when you log into your WordPress website successfully.


After installing WordPress and logging in, you must explore and populate your site with content.

1. Make Your First Blog Post

Adding content to your website helps you attract and retain visitors. It also aids in improving your search engine rankings. What better way to add content to your website than a blog post?

To add a blog post to your website, click “Posts”, and “Add New” from the left navigation bar.

First, add your post title. A post title is the headline of your blog post. This should be the only <H1> tag in the blog post body.

Then you can add the body text, starting with the first paragraph. You can add subtitles with <H2> tags through to <H6> tags.

You can add images and other media from your computer or from a URL to make your blog post more engaging.

When you’re finished writing and satisfied with your blog post, click “Publish” to publish it.

Congratulations! You have successfully published your first blog post.

Make Your First Page

The web pages on your WordPress website carry the site’s information to your visitors. A page like “About Us” carries the mission and vision of your website and its history.

Let’s take a look at how to make your first page on your WordPress website.

To create a new page on your WordPress website, go to Pages > Add New from the left navigation.

Give your page a title. You can edit your page with Elementor or Gutenberg Editor.

Install Your First Plugin

A plugin is a software program that enhances the functionality of WordPress websites. Some of the plugin options include:

Contact Form 7: This plugin allows you to create a contact page for your website with ease.

Elementor Website Builder: Elementor is a drag-and-drop page builder that makes creating a website quick and easy.

Yoast SEO: this plugin helps you improve your site’s search engine visibility and helps you rank higher in search engines.

WooCommerce: This is an e-commerce plugin that allows you to create a fully functioning online store.

WP Reset: This plugin helps you reset your WordPress site to its default.

To install a plugin, go to the “Plugins” on the left navigation, and select “Add New”. Now, find the plugin you want to install and press the “Install Now” button. After installing the plugin, click “Activate” to activate it.

Moving Your WordPress Website From Localhost to Live Server

After building your WordPress website locally, you will need to move it to a live server to share it with the world.

To do this, you will need to get a domain name and a web host.

For a new website, shared web hosting will be the ideal option for you.

Shared web hosting is cost effective. Companies charge around $7.00 to $10.99 per month for shared web hosting.

Luckily, Hostinger offers shared web hosting at the lowest price possible. They offer shared web hosting plans starting from $1.99 to $3.99 per month with a free domain name for a year.

For comprehensive shared web hosting providers, visit this article.

Final Thoughts

Locally hosting your WordPress site with Xampp is a great way to build your website without spending money on web hosting. You can build your website locally and buy a live server when you are satisfied with it.

However, if you would want get your website online in just few minutes take a look at our comprehensive article on Building your WordPress website in just 5 minutes.

We hope you found this article useful in learning how to install WordPress on Xampp for Windows 10.

Follow our Quora space to ask any question have. We will do our best to answer all of your questions.

Get More From Us

Affordable Business Website Design: Fiverr’s best affordable website design service and why it’s the best option for your startup website.

The Best Custom WordPress Web Design Services: The best WordPress web design services that will fit your budget.

How Much Does Web Hosting Cost?: Our comprehensive research on how much it costs to get your website online. The latest research

Samuel Blay

Samuel Blay

I'm a WordPress and business software enthusiast with years of experience in the industry. As a blogger, I share my knowledge and expertise to help others make the most out of their online presence. I love to shop online and believe in the power of WordPress and cutting-edge software to help entrepreneurs succeed.

Leave a Reply

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

Related Post

Your WordPress website deserves a reliable host. We recommend Hostinger

The Ultimate Guide To

Creating Small Business Website

Get FREE access to our Ultimate guide that gives you step-by-step instructions on How To Create Your Small Business Website.

Sign Up for for good deals!

Get the best deal from your favourite business software in your inbox. Don’t miss it!

Step-By-Step Guide to Creating Your Business Website

From defining your website goals to promoting your online presence, this eBook will guide you through the step-by-step process of building a successful website for your business. Join over 50 business owners building their websites with this guide.