![]() |
| 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
Download XAMPP for Windows.
Install XAMPP on your computer.
Open XAMPP Control Panel.
Start Apache and MySQL.
Step 2: Download WordPress
Download WordPress ZIP file.
Extract the ZIP folder.
Copy the extracted folder into:
C:\xampp\htdocs\Rename folder (example:
mywebsite).
Step 3: Create Database
-
Open a browser and type:
http://localhost/phpmyadmin -
Click New.
-
Enter database name (example:
wordpress_db). -
Click Create.
Step 4: Run WordPress Installer
-
Open a browser and type:
http://localhost/mywebsite -
Select Language.
-
Click Continue.
Step 5: Database Details
Fill details:
-
Database Name:
wordpress_db Username:
root-
Password: (leave blank)
-
Hostname:
localhost -
Table Prefix:
wp_
Click Submit → Run the Installation.
Step 6: Website Setup
-
Enter:
-
Site Title
Username
-
Password
-
Email
-
-
Click Install WordPress.
Log in at:
http://localhost/mywebsite/wp-admin
PART 2: Install WordPress Online (Live Server / Hosting)
Step 1: Buy Domain & Hosting
From providers like:
Hostinger
Bluehost
-
GoDaddy
-
Namecheap
Step 2: Login to cPanel
Open your hosting control panel (cPanel).
Step 3: Create Database
-
Go to MySQL Databases.
-
Create:
-
Database Name
Username
-
Password
-
Add user to database with All Privileges.
Step 4: Upload WordPress Files
Download WordPress from: https://wordpress.org/download
Go to File Manager → public_html.
Upload WordPress ZIP.
Extract it.
Step 5: Run Installation
-
Open browser and type your domain:
https://yourdomain.com
-
Select Language.
-
Enter database details:
-
Database Name
Username
-
Password
-
Hostname: localhost
-
Click Submit → Run Installation.
Step 6: Website Information
Enter:
Site Title
Admin Username
-
Password
-
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:
-
Login to cPanel.
-
Click WordPress Installer / Softaculous.
-
Click Install.
-
Fill details (domain, username, password).
-
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

0 Comments
If you any doubts, please let me know