Easy Way to Install WordPress on Localhost and Live Server || How to Install WordPress Offline and Online

 

Easy Way to Install WordPress on Localhost and Live Server  How to Install WordPress Offline and Online
Easy Way to Install WordPress on Localhost and Live Server: How to Install WordPress Offline and Online

PART 1: Install WordPress Offline (Localhost)

(Using XAMPP / WAMP / MAMP)

Step 1: Download XAMPP

  1. Go to: https://www.apachefriends.org

  2. Download XAMPP for Windows.

  3. Install XAMPP on your computer.

  4. Open XAMPP Control Panel.

  5. Start Apache and MySQL.

Step 2: Download WordPress

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

  2. Download WordPress ZIP file.

  3. Extract the ZIP folder.

  4. Copy the extracted folder into:
    C:\xampp\htdocs\

  5. Rename folder (example: mywebsite).

Step 3: Create Database

  1. Open a browser and type:
    http://localhost/phpmyadmin

  2. Click New.

  3. Enter database name (example: wordpress_db).

  4. Click Create.

Step 4: Run WordPress Installer

  1. Open a browser and type:  http://localhost/mywebsite

  2. Select Language.

  3. Click Continue.

Step 5: Database Details

Fill details:

  1. Database Name: wordpress_db

  2. Username: root

  3. Password: (leave blank)

  4. Hostname: localhost

  5. Table Prefix: wp_

Click SubmitRun the Installation.

Step 6: Website Setup

  1. Enter:

    1. Site Title

    2. Username

    3. Password

    4. Email

  2. Click Install WordPress.

        Done!

Log in at:
http://localhost/mywebsite/wp-admin

PART 2: Install WordPress Online (Live Server / Hosting)

Step 1: Buy Domain & Hosting

From providers like:

  1. Hostinger

  2. Bluehost

  3. GoDaddy

  4. Namecheap

Step 2: Login to cPanel

Open your hosting control panel (cPanel).

Step 3: Create Database

  1. Go to MySQL Databases.

  2. Create:

    1. Database Name

    2. Username

    3. Password

  3. Add user to database with All Privileges.

Step 4: Upload WordPress Files

  1. Download WordPress from: https://wordpress.org/download

  2. Go to File Managerpublic_html.

  3. Upload WordPress ZIP.

  4. Extract it.

Step 5: Run Installation

  1. Open browser and type your domain:
    https://yourdomain.com

  2. Select Language.

  3. Enter database details:

    1. Database Name

    2. Username

    3. Password

    4. Hostname: localhost

  4. Click SubmitRun Installation.

Step 6: Website Information

Enter:

  1. Site Title

  2. Admin Username

  3. Password

  4. Email

Click Install WordPress.

Login at:
https://yourdomain.com/wp-admin

🌟 BONUS: One-Click WordPress Install (Easy Method)

Most hosting provides Softaculous / WordPress Installer:

Steps:

  1. Login to cPanel.

  2. Click WordPress Installer / Softaculous.

  3. Click Install.

  4. Fill details (domain, username, password).

  5. Click Install.

WordPress installed in 2 minutes!

Difference Between Offline & Online

    Offline (Localhost)                                Online (Live Server)
    No internet needed                                Internet required
    For practice                                For public website
    Uses XAMPP/WAMP                                Uses Hosting
    Only on your PC                                Visible to world

Post a Comment

0 Comments