[ GUIDE ] How to install WordPress locally with XAMPP

This guide will explain how to install WordPress locally with XAMPP. Installing WordPress locally is the first useful step to start developing a website or blog before putting it online.

Installing WordPress locally with XAMPP also allows you to get to know and use PHPMyAdmin, a tool used by most hosting companies for database management.

If instead, you want to install WordPress online, I suggest you read my guide to building a successful website with WordPress. Let’s move on to the practical part of the guide!

1. Download XAMPP

To get started download XAMPP directly from the official website and choose the version suitable for your operating system.

xampp-screenshot

After the download is complete, double click on the downloaded file to start the installation of XAMPP and leave all the default settings in place during the installation.

When you get to the last step of the installation, you will be asked if you want to install Bitnami; click on “NO” as it does not serve our purpose. Then you will have finished the installation of XAMPP.

Personal tip: Remember to delete the previously downloaded XAMPP installation file to avoid wasting space on your hard disk.

2. Download the latest version of WordPress

Go to the official WordPress website and download the latest version of WordPress by clicking on the “Download” button.

download the latest WordPress version

After finishing the download move the file you just saved inside the folder “htdocs” created by XAMPP to your hard disk, which you find in the following path (if you left all the default settings of XAMPP):

C:/xampp/htdocs/

After moving the file, extract the archive, and you should have a folder called “WordPress,” as in the image below. Rename that folder with the name of your site, for example, “my-first-web-site” and delete the previously saved archive or save it for a future installation of another site.

docs xampp windows folder location

Inside the folder, you’ll see several files that WordPress needs to work correctly.

Note: Mark the name of the database because soon, you will have to enter the word on a specific page.

WARNING! Deleting any of those files risks making WordPress not work correctly locally.

3. Start the server and the database in XAMPP

We need to start our virtual server on our computer at this point. Start XAMPP, which you installed earlier. You will see a window with various entries.

The ones that interest us are “Apache,” the virtual server, and “MySQL,” which is used to start the database connected to the server. Click on the Start buttons of both entries as in the image below.

how to start xampp windows

After clicking on the two entries, you’ll see that the two entries will be highlighted in green if everything goes well!

When you are done using XAMPP, you only need to click on a stop in both entries and exit to close the program.

4. Create the database in PHPMyAdmin

It’s time to create the WordPress database on PHPMyAdmin, a tool used by most hosting services which allows you to create databases in just one click.

First, open your favorite browser, and in the address bar, type the following address: localhost/PHPMyAdmin/.

If XAMPP is working properly, you will get a page like in the image below, where you must make sure that the language is set to Italian, then click on the database item.

create a WordPress database on PHPMyAdmin

In the database section, you will find the form “Create a new database,” where you must enter the name of your site without spaces.

Then click on “CREATE,” and a confirmation message will appear for the successful creation of the database.

Note: Write down the name of the database because soon, you will have to insert it on a page.

5. Install WordPress

At this point, we open a new browser window, and in the address bar type the following: localhost/site-name/wp-admin/install.php (site-name should be replaced with the name you assigned to the previously renamed WordPress folder).

If you’ve done everything correctly, a page should appear like the one below. Click on “Create a configuration file” to continue.

create wp-config WordPress file

You will be taken to a page where you will be summarized to continue with the installation of WordPress. Click on the “Let’s get started!” button to continue.

At this point, you will be asked for some data that you must fill in as in the image below:

WordPress installation

In DATABASE NAME, make sure you have entered the name of the database previously created. To continue, click on “SEND.”

If everything is correct, you will see a page where you will be told that the data entered are accurate and then you can proceed with the installation of WordPress! In case of error, click on “Try again” and check that you have entered all the data correctly.

6. Configure WordPress

Congratulations, you have successfully installed WordPress! Now all that’s left to do is fill in the last few details so you can start using your brand new WordPress site locally!

Here’s a description of the required data:

Site Title: Enter the name you want to give your site.

Username: The name with which you will log in to your site. Default is admin.

Password: Enter the password with which to access the WordPress panel.

Your email: Enter the email to which you want to be sent a reminder with your registration data.

Privacy: Since the site is offline, this item is unnecessary, so leave it as it is by default.

Personal advice: Save your username and password because you will need them for future access to your site.

After you have filled out the data, click on “Install WordPress” to continue with the installation of WordPress. If everything goes well, you will see a success page!

Click on Login to log in to your WordPress site. In the future, you will be able to Login into the WordPress panel by typing the following address into your browser: localhost/site-name/wp-admin

The guide is finished! If you want to install multiple WordPress sites locally, you’ll have to do nothing but follow the guide again from point 4 onwards.

If you want to customize your WordPress site with professional and custom themes and make it unique, you can find hundreds of articles by clicking HERE.

customize WordPress site

I hope the tutorial was helpful for you. Did you know that after installing WordPress locally with XAMPP, you can also create an eCommerce with WordPress then I recommend you to read the dedicated guide I wrote for that purpose.

If this content was to your liking, share it with your friends and show me your appreciation!

Leave a Comment

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