How To Install WordPress On Xampp WebServer Beginner's Guide

Do you want to make a local WordPress site on your computer using XAMPP? In this article, we will show you how to install WordPress on Xampp webserver.

How To Install WordPress On Xampp WebServer Beginner's Guide

Do you want to make a local WordPress site on your computer for free using XAMPP? In this article, we will show you how to install WordPress on Xampp webserver.

Installing WordPress on your computer helps you test out WordPress, test themes/plugins, and learn WordPress development.

Creating and installing local WordPress sites is a common practice among Pro developers and website owners.  It allows you to test WordPress without creating an actual website on the net.

XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl.

Local websites on Xampp are entirely visible to you on your computer. You can try different WordPress themes and plugins, test their features, and learn the WordPress basics.

If you already have a WordPress website, then you can create a local copy of your site on your computer to try out new plugin updates before implementing them on your live website.

Important: the Local website will only be visible to you on your data processor.  If you want to make a live WordPress site, then you will need a domain name and WordPress hosting.

Follow the step by step instructions in our how to install WordPress on Xampp Web server and how to start a WordPress blog guide when you are quick to create a live version of your website.

Having supposed that, let’s check out how to install WordPress On Xampp webserver locally on Windows, Mac, or Linux.

In order to make a local WordPress site, you will need to install and set up a web server software (Apache), PHP, and MySQL on your own computer.

PHP is a scheduling language and MySQL is a database management software.  Both of them are demanded to run WordPress.  Installing each of this software separately is quite hard for beginners. This is where XAMPP comes in.

Both of them are required and demanded to run WordPress.

Installing each of this software separately is quite hard for beginners. This is where XAMPP comes in.

XAMPP makes it comfortable for you to build WordPress websites locally. It is available for Windows, Mac, and Linux-based computers.

Let’s get it started today!

The very First thing, you need to visit the XAMPP official website and click on the download button for your operating arrangement.

XAMPP is the most popular PHP development environment.

The XAMPP open source package has been set up to be incredibly easy to install and to use.

Depending on your operating arrangement, your installation wizard and the application interface may differ from the screenshots here.

For the sake of this article, we will depict you the Windows version of the software.

After downloading XAMPP, you will need to fall into place and run the installer.

When you start installing it, then XAMPP will ask you where you desire to install the software and which packages you’d like to install for your computer.

The default settings will work for most of the users.

Also, Keep clicking on ‘Next Button’ to finish the setup wizard.

After finishing the wizard, check the ‘start the control panel now’ option and then click on the finish button to close the installation wizard.

This will open the XAMPP control panel. Go ahead and click on the start button in front of Apache and MySQL.

XAMPP will now start Apache and MySQL services for you. After doing that,  You may watch a Windows Firewall notification, it is important that you click on ‘Allow Access’ button for both applications to run on your computer.

windows firewall allow access

Once both applications are started their names will be highlighted in Green.

You have successfully installed XAMPP on your data processor means on your computer.

Now you are ready to create a local web site and install WordPress using XAMPP.

The very first step, you will need to download WordPress free version. Visit the website and at the top right side, you see “Download WordPress” button click on the ‘Download WordPress’ button.

After downloading WordPress, you need to pull up the zip file, and you will see a WordPress folder. You now need to copy this folder somewhere safe.

download wordpresss

Side by side, head over to your XAMPP installation folder.

On Windows it would be in C:/Program Files/XAMPP/htdocs or C:\Xampp\htdocs folder. On a Mac, it will be /Applications/XAMPP/htdocs folder.

Paste the WordPress extractable folder you copied earlier inside the htdocs.

We recommend renaming the WordPress folder to the “simple web site or first sample website”. This will help you easily identify your local website.

Next, you need to open your preferred web browser and visit localhost/simplewebsite. You will then see a page like the one below:

This page will tell you that WordPress needs a database name, database username, password, and server information.

Let’s create a database for your WordPress website.

You’ll need to open a new browser tab and visit localhost/phpmyadmin/.

This will launch phpMyAdmin app that comes pre-installed with XAMPP.

It allows you to easily handle your databases using a simpler interface.

You would need to click on Databases, provide a name for your new database, and then click on the create button to keep on.

Now that you have created a database, you can use it for your WordPress website.

Switch back to /localhost/website1/ browser check and click on the ‘Let’s Go’ button.

On the following screen, you will be asked to provide your WordPress database information.

Enter the database name you made earlier.

Your username is ‘root’ and you should exit the password field blank.

For the database host field, you need to use localhost. See the screenshot below here:

Once you are done with it, click on the ‘Submit’ button to stay on.

If you are on Windows or Linux, WordPress will now store all these settings in your WordPress configuration file called WP-config. PHP file.

However, if you are on a Mac, then it will show you the contents of the file and will ask you to make/edit it.

You will ask to create this file in your website’s root folder.

After creating the config file, paste the text you copied earlier inside it.

Next, you need to save the file and return back to the WordPress installer to proceed.

In the following step, WordPress will ask you to provide information about your website. First, enter the title you want to use for this website.

After all that you need to enter a username and password, and an email address for your WordPress admin account.

Once you have done with all these, and Once you have filled all the required information, click on the ‘Install WordPress’ button to go on.

WordPress will now run the installation and prompt you to log in once it’s served.

You can login to your website admin panel/dashboard by going to /localhost/simplewebsite/WP-admin page and use the same username/password that you entered during installation to log in.

Now that you have created your local WordPress site using XAMPP, you can go on it like you would do on a live WordPress site.

Head over to the Appearance panel to customize your website’s appearance or to install a fresh, neat and clean theme. For free WordPress themes, Visit the link. Here are some great, professional looking top selling free themes that you can ever taste.

The next thing you would want to try is WordPress plugins.

Plugins are like apps for your WordPress site and allow you to add cool features like contact form, photograph galleries, eCommerce store, etc.

Need help installing plugins? See our step by step guide on How to Install A WordPress Plugin – Step by Step for Beginners

Need help creating photo galleries? See our step by step guide on How to Create An Image Gallery In WordPress Theme Beginner’s Guide

Need help uploading PDF files? See our step by step guide on How to Upload PDF File to Your WordPress Site Posts & Pages

After working on your local WordPress site, you may want to run it to a live server.  Head over to our step by step guide on how to move WordPress from localhost to live site.

We hope this article helped you learn how to install WordPress on Xampp webserver And how to create a local WordPress website using XAMPP machine server.

Welcome to the world of bloggers and writers. I’m wishing you the best of luck!

Don’t forget to share this list with your friends.

Best of luck and have a great flight!

Did you find this guide valuable? Please share it with your friends.

Hey, Welcome to an award winning blog Creativedreamtech. I'm M Usman, a blog scientist by mind and a professional blogger, Web developer from Pakistan.

I started Creativedreamtech as a passion and now it's empowering more than 87,000+ readers globally and helping them to make money with their blog.

Here at CDT, I write about Starting & managing a Blog, WordPress, Social-media, SEO, Blogging, Entrepreneurship and Making Money online.


Your Name (required)

Your Email (required)

Your Message