Installing WordPress on localhost is easy. You have to install the XAMPP software by downloading it from internet.
How to install WordPress locally with XAMPP
1. Download XAMPP Software
Download XAMPP from the official website and find your operating system from the list. XAMPP supports all operating systems. It is open-source software, you don’t need to give any personal information.
After choosing your operating system hit download button and wait for the download.
2. Install XAMPP Server on Local System
After downloading XAMPP on your system, simply run the software to install
Click on Next button and simply install the software. It will show some options that are selected by default. But you don’t need to select all these options.
To use WordPress locally, you need to select only apache, MySQL, and PHP.
After selecting these options click Next button and wait for the installation.
3. Start the Modules to Test the Server
To install WordPress locally, you need to run the Apache and MySQL modules
Go to the XAMPP control panel and click start buttons
Click on the start button for both of the modules. Both of these module should turn green once you enable them.
4. Download WordPress for Localhost
For localhost, you need to download the latest version of WordPress in your PC storage. You will then have to manually unzip the WordPress zip file in the targeted folder of XAMPP. Go to the official website of WordPress and download WordPress.
5. Create a Local Database Server
Navigate to the folder where you have downloaded the XAMPP software. If you have kept everything in the default settings, you will find the folder here – C:\xampp.
Open the folder and create a new folder for your local website. Remember that the folder name will be the sub-name for your website.
In the folder, unzip the downloaded WordPress file.
Now from the MySQL module, click on the admin button
From the top, click on database and give a name for your database. Here I have used wpment as the server name. Now click on the create button.
However, here you don’t need to create a user server like the regular WordPress installation for a live website.
6. Install WordPress on XAMPP for Localhost
Now you can visit your local website with the link http://localhost/foldername
Now give the credentials for the databes.
- Database Name: Here give the database name you have created for PHPMyAdmin
- User Name: Keep the user name as ‘root’
- Password: Keep it blank
Finish the rest of the installation process in the normal method.
If everything you have set in the right way, a new website will be created for the localhost.
If you have followed the steps properly, you won’t have to ask again how to install WordPress on localhost. As XAMPP supports all operating systems, you don’t have to struggle with anything.