How to install wordpress website in localhost?

Absolutely! I’ll guide you step by step on how to install a WordPress website on your localhost (your own computer) using tools like XAMPP or WAMP. I’ll keep it beginner-friendly.


Step 1: Install a Local Server (XAMPP / WAMP / MAMP)

  1. Download XAMPP: https://www.apachefriends.org/index.html

    • Choose Windows / Mac / Linux version based on your OS.

  2. Install XAMPP and open the XAMPP Control Panel.

  3. Start modules:

    • Apache (web server)

    • MySQL (database server)

If using WAMP, it’s almost the same—just start WAMP and click the green icon.


Step 2: Download WordPress

  1. Go to https://wordpress.org/download/

  2. Download the latest version of WordPress (ZIP file).

  3. Extract the folder.

  4. Copy the extracted folder into your local server’s root directory:

    • XAMPP: C:\xampp\htdocs\your_website_name

    • WAMP: C:\wamp64\www\your_website_name


Step 3: Create a Database

  1. Open browser → type http://localhost/phpmyadmin

  2. Click DatabasesCreate Database

    • Name it (e.g., wordpress_db)

    • Collation: utf8_general_ci

    • Click Create


Step 4: Configure WordPress

  1. Go to your site in browser: http://localhost/your_website_name

  2. Select language → Click Continue

  3. Click Let’s go! (WordPress setup)

  4. Fill in database details:

    • Database Name: wordpress_db (from Step 3)

    • Username: root

    • Password: (leave blank for XAMPP)

    • Database Host: localhost

    • Table Prefix: wp_ (default)

  5. Click Submit, then Run the Installation


Step 5: WordPress Site Setup

  1. Fill in site info:

    • Site Title

    • Username (for admin login)

    • Password

    • Email

  2. Click Install WordPress

  3. After successful installation → Login using your admin credentials:

    • http://localhost/your_website_name/wp-admin

Leave a Comment

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

Shopping Cart
Scroll to Top