If you want to install WordPress on your PC, then you are in the right place. Here you will learn how to install WordPress on Localhost with the XAMPP Software.
Why use XAMPP Software to Install WordPress?
To install WordPress on your PC, you have to convert your PC into a server. Also, since WordPress is written in PHP and uses MySQL DB, therefore PHP and MySQL DB must be installed on your PC.
But, you do not need to install those applications separately, XAMPP software will easily install those applications at once, and it is FREE.
XAMPP comes with – Apache Server + PHP + MariaDB + Perl
Follow the below steps to install the WordPress on localhost
1. Download and Install the XAMPP
Go to XAMPP Official-Site and download the latest version of XAMPP according to your OS (Mac, Linux, Windows).
Install the XAMPP after downloading it, and it is easy to install. But if you need help to install it, the official website provides very well documentation of the XAMPP installation.
Below, the resources of XAMPP installation are given –
2. Start the Apache and MySQL server
After installing the Xampp, run this software and then start the Apache and MySQL server.
3. Create the Database
typing the following URL on your Browser to open the the phpMyAdmin.
Now at the left side, click on the New to create a new database for your WordPress website.
Enter your Database Name and select the collation to
utf8mb4_unicode_ci, and then click on the Create button. The Database name is totally up to you, but you have to remember this name.
4. Create your site folder inside the htdocs
Now inside the Xampp htdocs folder, you have to create a folder for your new site.
So first, open the Xampp htdocs folder. you can find this folder inside the xampp folder.
Shortcut to open the xampp folder – On the xampp control panel click the Explorer.
Go inside the htdocs, and here create a new folder and named it whatever you wish, but you have to remember this name, because you can access this local WordPress site through this name.
5. Download and Extract the WordPress zip file
Download the WordPress inside the newly created folder from WordPress.Org, and then Extract the WordPress zip file into the current folder.
Now go inside the wordpress folder and cut all the things and paste into your main site folder.
6. Install your local WordPress site on your localhost
Now in your browser, type the following URL –
In my case –
After that, Choose the language and click Continue, and then click Let’s go! button.
- Database Name – Enter your Database Name, in my case my_site_db_name.
- Username – by default the username is root.
- Password – by default the password is empty.
- Database Host – localhost.
- Table Prefix – for the local site it’s ok to go with the default (wp_).
- Site Title – Enter your site title.
- Username – Enter your username.
- Password – Create a new password.
- Your Email – Enter your Email ID.
You must have to remember the username and password, otherwise you will not be able to login to your WordPress dashboard.
To see your site – at the left side hover your mouse on your site title and click Visit Site.
How to login to your WordPress dashboard after logout?
The default WordPress Dashboard login URL is http://yoursite.com/wp-admin/.
in my case –
Congratulations on successfully installing WordPress. Check out the must-watch tutorial – What are the Essential Settings of WordPress you have to do after Installing the WordPress.