Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to install WordPress on localhost



In this tutorial, you will learn how to install Wordpress on localhost using the Xampp server. You can also use the free domain and hosting on different platforms to install WordPress but on the local host there are fewer chances to lose your data, it makes the development faster, you can have your personal backup of your website and you can work offline. 

Without the Xampp Server, you can not run PHP and Database on your system, and WordPress is made by the combination of PHP and Database so we have to download and install the Xampp server if we want to download them and install the WordPress.

So, you just need to download the latest versions of WordPress and Xampp Server.

WordPress Download

To download WordPress you just need to go to the official website of WordPress. So, Open your web browser and type 'wordpress.org/download/' or you can simply write "download WordPress" in Google Search. Make sure to download WordPress from the official website.

Here is the link to download WordPress

Just click on WordPress so you will reach the official website of WordPress so just scroll down and press the download button that you can see below in the image.



Here is the latest version of WordPress is 6.0 but maybe when you are reading this tutorial the version can be changed so you just make sure that only download the latest version of WordPress.

Xampp Download

To download the Xampp server you need to go to your browser and type 'Xampp download' in Google Search or simply type 'apachefriends.org' in the URL bar.

Here is the link to Download Xampp

Just click on the download button to download the Xampp server so you should download the latest version of the Xampp server.




Here you will get the different versions of the Xampp server for different Operating Systems so, as we are Windows users so we will download for Windows but if you are a user of Linux or Mac so you just scroll down and download the Xampp server according to your Operating System.

Installation of Xampp Server and WordPress

For the Installation of Xampp, you just go to the downloads folder where you download the setup file.

Steps to Install Xampp
  1. Open the Setup File 
  2. Click Next, Next and Next 
  3. Finish in the end 
So Xampp will install on your computer but remember one thing if you are installing the Xampp in 'C' Drive you can simply install the Xampp on clicking Next but if you are trying to install Xampp in another Drive so you should make a folder in that drive with named as Xampp / Server or whatever you want or simply you just type the name after Drive name while installing as shown below:




If you do not do this so Xampp will be installed on your PC but there are a lot of folders there in the Xampp folder there are a lot of chances to mix up those folders with your other files or folders that are already in your Drive.

After the installation of Xampp, the Xampp control panel will open and you just have to start the Apache and MySQL. Apache and MySQL are necessary to run PHP and create databases. So, for the installation of WordPress, we have to start Apache and MySQL. 


The Xampp control panel looks like this so you just have started both modules Apache and MySql and minimize the Xampp control panel and go to that drive where you installed the Xampp server. 

So, we are assuming that you installed the Xampp in 'C' Drive so open 'C' and there will be a folder named Xampp.
Just click and open that folder and there will be a folder named 'htdocs'


 So open this folder and paste the WordPress file here which we downloaded from the internet and extract the file as shown below:


After this just replace the folder name WordPress with your project or website name. As we named our project is 't20slam' so you can also name it your project name what you want.


Steps to Install WordPress

Before the installation of WordPress, you have to create a database in MySql. So First of all Open your browser and type 'localhost/phpmyadmin'. So, you will see the interface as shown in the image below:



To create a new database just Click on the Databases button on the top so this event will take you in the databases menu where you can create your database.



Type your database name and simply create your database by clicking on the "Create" button.

Now type localhost/t20slam in your browser. when we extracted the WordPress file so we renamed that file. As I renamed the file with the name of t20slam but you type your name which you renamed the WordPress file.

This window will show you type 'localhost/t20slam'


In this menu, WordPress is asking for your language so you just choose your language and click on the Continue button.


This is the Welcome screen and some instructions from WordPress just read it and click on the 'Let's go!' button.


Here in this window, you have to write your database name which you create in MySql
In the second box, you type the username "root" because when we are working on localhost so the username always is root.
In the third box, you can set a password but we are working on localhost so we have not to need to set a password if you want to set a password you can.
In the fourth box Database Host is localhost.
The fifth box is Table Prefix "wp_" is a prefix defined by WordPress. You can change it but this is easy to remember so most the users use this prefix.

After this just press, the submit button.


Click on the 'Run the Installation' button to install the WordPress.


This is the information form which you have to fill out before the installation. 
Write your site title and username password and email that's it and just click on the 'Install WordPress" button.

After the installation button, you will see a Login Window, so you have to put your username and password in the Login fields.


Just Press the Login button and you will land on the WordPress dashboard.



So You have Successfully installed WordPress on localhost. 

Whenever you want to log in again in WordPress, First Open Xampp control panel and start Apache and MySql, and type localhost/t20slam/wp-admin.


This post first appeared on AB Hashmi, please read the originial post: here

Share the post

How to install WordPress on localhost

×

Subscribe to Ab Hashmi

Get updates delivered right to your inbox!

Thank you for your subscription

×