How to Install WordPress on Localhost XAMPP

If you want, you can also install WordPress on your localhost for testing so that you can understand the features of WordPress and know how to use them. Also, if you are a web developer, then you can also understand the functionality of WordPress and can also make custom changes to it.

Read More: How to Fix Missing Gravatar Alt Tag Value in WordPress

There are many benefits of installing WordPress on localhost. By installing WordPress on your computer, you can design a website without buying a domain and hosting, try new themes and plugins, learn WordPress development, etc.

Before installing WordPress on localhost, it is very important for you to have a PHP localhost server. For the localhost server, you can use XAMPP Server.

What is WordPress

WordPress is the most popular content management system in the world. WordPress CMS is a completely free CMS. And also in this, you get many free plugins and themes, with the help of which you can easily create a good WordPress blog.

WordPress is the best and easiest option to create a blog for any new or old person who wants to blog.

How to download and install Xampp local server

Xampp is a local server, just like a live server works, the local server also works. But the difference is that the local server is only on the local computer and the live server is global. Which can be used from anywhere.

Step 1- First of all you have to download Xampp server to install WordPress on xampp server. To download the Xampp server go to the link given below – https://apachefriends.org

Step 2- After visiting the official website of the Xampp server, you have to download the xampp server. Here you can download for Windows, Linux, and OS X. If you are a windows user, click on windows.

how to install xampp

Step 3 – Once Xampp is downloaded, you will see the setup of xampp like this. You have to click on it. After clicking, you have to let it install completely until the complete process is completed.

how to install xampp 3

Step 4- Once XAMPP is downloaded, install it. It will ask you for information about the installation location and which packages you want to install. The default settings work for everyone, so you can proceed by clicking Next.

wp screenshot 2

Step 5- After the installation, tick ‘do you want to start the control panel now and click on Finish.

wp screenshot 3

Step 6 – After the Xampp local server is installed, you have to first start apache and MYSQL by opening the xampp control panel. Keep in mind that you only have to start these two and minimize the control panel.

how to install and congured xampp 8

Step 7- After that, you have to go to C drive.

how to configure xampp 3 PHP5

Step 8 – After going to C drive, you have to see a folder xampp and open it by clicking on it.

how to install and congured

Step 9- After going to the Xampp folder, you will see many folders. Here you only have to open the htdocs folder. There is no need to tamper with any folder on the local server. We will install WordPress in this htdocs folder.

how to configure and configure

How to install WordPress on localhost

If you follow the given steps then xampp will be installed in the C drive of your computer. After installing xampp you have to download WordPress now click here to download WordPress WordPress officially.

wp screenshot min

After WordPress is downloaded, extract its zip file. This will give you a WordPress folder.

wp screenshot 12 min

You have to move this WordPress folder under htdocs present in the XAMPP installation directory. The location of this folder will be something like this on a Windows computer – C:\Program Files\XAMPP\htdocs or C:\Xampp\htdocs. Paste the WordPress folder inside htdocs.

wp screenshot 13 min

After this, rename the WordPress folder, so that it is easy for you to remember. I have renamed this folder to mywebsite.

wp screenshot 14 min

Note: Keep in mind that all the files should be inside the ‘mywebsite’ folder. If for some reason a WordPress folder has also come inside this folder, then move all the files in that folder inside ‘mywebsite’. Your folder should look something like this. 

wp screenshot 15 min

Now go to your web browser (chrome, firefox, etc) and open localhost/website. You will see a page like this.

wp screenshot 16 min

After this, you have to create a database for your website.

Open a new tab in your browser, and go to localhost/PHPMyAdmin. PhpMyAdmin comes pre-installed with XAMPP and with its help you will be able to manage all your databases very easily.

Here you have to click on databases and give any name of your database and click on create button. A new database has been created for the website.

wp screenshot 17 min

Now go back to the localhost/mywebsite tab and let’s go! Click on

wp min

Here you have to enter the name of your database. Enter root instead of a username, leave the password field blank, enter localhost instead of database host and click on the submit button.

wp screenshot1

If you are using a Windows or Linux computer, WordPress will save all these settings in wp-config.php.

Now you have to enter your website details like title, username, email, and password, and finally click on the Install WordPress button.

wp screenshot 2

After this, you go to the new tab and open localhost/mywebsite/wp-admin. Here you enter your username and password and click on Login.

wp screenshot 3

In this way, you have installed WordPress on the local server of the computer. Here you will be able to test themes, plugins, and different settings without any hassle and worry. You can design a website in any way on Localhost.

I hope you liked this article. If you have any questions in your mind, then definitely ask in the comment below, and also share this article with your friends.

Leave a Comment