How To Install WordPress In Localhost: WordPress Tutorial#2

I’ve got some emails How to install How to install WordPress in localhost. Today I’ll show how to install WordPress in your local PC. You may know this process, but if you’re unknown then take a view how I’m doing this.

WordPress is a software to make beautiful blog or websites. WordPress is free to use. This is a nice platform to work with.

Now a day’s many merchant sites are building with WordPress. Yahoo is one of them. Now we are going the work-

  • Download WordPress.
  • Now download XAMPP latest version. XAMPP is a software for Linux combining with PHP and MySQL. But it also runs in Windows versions. Choose your required version. I’m showing here for Windows users.
  • Download Winrar for uncompromising files.

Step#1: How to install WordPress in localhost

Install XAMPP in your local PC. It will automatically install in C: drive. You may choose other drives for your safety to lose data.


Now unzip the downloaded WordPress software by using winrar. If you have another software for unzip files then no need to download winrar.

Extract WordPress like below-


Now copy WordPress folder and go to the XAMPP installation drive and search for “htdocs” folder. The path will be XAMPP>>htdocs and paste the WordPress folder. Remember carefully you will have to work everything in htdocs folder.

If you want to work in root directory then move all the files from WordPress folder to htdocs folder. Or, you may rename WordPress directory whatever you want.


Step#2: How to install WordPress in localhost

Now you’ve to make a database to work properly with WordPress. Go to XAMPP folder, I’m showing by default in C drive. My Computer>>C Drive>>xampp>Xampp Control


Xampp Control will be like below-


First click to run Apache and then MySql. If you cannot run those two, you will not be able to work with local server.

Click MySql>>Admin like below


Phpmyadmin will be appeared in your browser like below


Create a database on your desired name. You may give it to your name also.

I have named it “wodpress”. I’m showing to create a database.


You have created a database successfully!!

Step#3: How to install WordPress in localhost

Open a new tab in your browser and give the desired address of the directory. If you put all the files in root means htdocs folder then the address will be http://localhost or

If you have put the files in a folder like “wordpress” then the URL will be http://localhost/wordpress. If everything will be ok then you will get the page given below


Click Create a Configuration File. Sometimes this page will not appear, you may have to build the configuration file manually. Then go to the wordpress folder under htdocs. Find wp-config-sample.php file and rename it to wp-config.php. The rest of the work given below.

Now if you don’t see these options in the configuration file. That means if you have to do it manually then go to the wp-config.php file and open it by Notepad or any editor. Do it like I have done below


Step#4: How to install WordPress in localhost


Click Let’s go!

Please see carefully and fill all the steps. You have to configure the page here. So be careful to fill the database name again


Right above I have made a Database Name “wordpress”, User Name is default “root” for localhost. Password field will be blank. Keep the Database Host as localhost. Change the table prefix wp_ to anything else for your database protection in future. It is most important for multisite.


Now click Run the install. Installation will be finished shortly.


Fill the desired fields by your site information. We have successfully done WordPress Installation!!!

See the next page and it will show the hidden password field.


We have done all the tasks very successfully. Now you can modify your site as you want. Take a look how it will be shown


This is our primary site look. If you want to dashboard of your site then your URL will be http://localhost/wordpress/wp-admin. If you’ve installed in root directory then your URL will be http://localhost/wp-admin.

wp-loginLogin into your admin panel and enjoy!!!