How to Install WordPress in Localhost

How to Install WordPress in Localhost: For testing new themes and plugins, trying these on localhost is a healthy habit in web development using WordPress. Moreover, if you want to learn how to use WordPress for your dream blog or website, trying it on localhost is the best method.

Many bloggers make the mistake of trying new themes and plugins on their hosted websites or blogs. Testing new themes and plugins on the hosted websites or blogs can result in losing your content.

In the beginning, I was like how is it possible? It must the same case to you. Here I will show you how to install WordPress on your own localhost server and join the blogging world as a pro after mastering it!

 

Install WAMP, LAMP, MAMP or XAMP

To host a website you need to have a server on which your web pages will be stored. WAMP, LAMP, MAMP, and XAMP are some of the popular software stacks used for serving this purpose on your own computer or laptop.  You may install any of this software depending on the type of operating system you are using.

How to install and use them remains similar. Here, I will be showing how to use WAMP (for Windows-based operating systems).

  1. Download the latest WampServer from here.
  2. After downloading it, install it on your computer like installing any other software.
  3. Run WampServer and check whether it is working or not. If the WampServer icon in the system tray turns green, it is an indication that your server is ready!
  4. If not try starting WampServer.

 

Setup MYSQL database

  1. Click on WampSever icon in the system tray and the click phpmyadmin.

Click on phpMyAdmin

  1. By default, your username is set to root and an empty password. Enter username “root”, keep the password blank and click “Go”

Click on “Go”

  1. Create a new database

Enter database name

Download WordPress

WordPress is open software you can use it to create a beautiful website, blog, or app.

Download latest WordPress package going to wordpress.org. New versions of WordPress keeps on coming with better features with every version.

 

Install WordPress to your Localhost

  1. Unzip the WordPress package you downloaded into www folder in the wamp folder in C:\ or wherever you must have installed WampServer.
  2. In the WordPress folder, open wp-config-sample.php and setup your MySQL settings.

Define your database name, username, password and hostname

  1. After setting up, rename the file name as wp-config.php.
  2. Now to install WordPress open your web browser, and go to

    http://localhost/wordpress

  3. Fill up the welcome page and click install WordPress.

Fill up the form

  1. Done! WordPress is now installed on your localhost server.

WordPress is installed in your localhost

Sonam Dargay

Kuzu Zangpo la! I am Sonam Dargay, a student in the College of Science and Technology affiliated to The Royal University of Bhutan. I am a tech enthusiast student, studying Bachelor of Engineering in Information Technology.

You may also like...

4 Responses

  1. Amna says:

    As a wordpress developer its very helpfull for me!

  2. Helpfuk and informative about intalling wordpress.Thanks for sharing!!

  3. Tiazim says:

    As someone who is new to wordpress, i found this article very useful!

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: