1. What You’re Doing
You are creating a local server on your computer so you can run WordPress without internet.
π Tools involved:
- XAMPP (Apache + MySQL)
- WordPress files
π₯ 2. Install XAMPP
Steps:
- Download XAMPP from https://www.apachefriends.org
- Install it (Next → Next → Finish)
- Open XAMPP Control Panel
- Start:
- ✅ Apache
- ✅ MySQL
π If both turn green = you're good
π¦ 3. Download WordPress
Steps:
- Go to https://wordpress.org
- Download WordPress
- Extract the ZIP file
π Rename folder:
wordpress → mysite
π 4. Move WordPress to XAMPP
Path:
C:\xampp\htdocs\
π Copy your folder:
C:\xampp\htdocs\mysite
π️ 5. Create Database (VERY IMPORTANT π₯)
Steps:
- Open browser
- Go to:
http://localhost/phpmyadmin
- Click New
- Enter database name:
mysite_db
- Click Create
⚙️ 6. Run WordPress Installer
Open:
http://localhost/mysite
Fill Details:
- Database Name:
mysite_db - Username:
root - Password: (leave empty)
- Server:
localhost
π Click Submit → Run Installation
π€ 7. Create Admin Account
Fill:
- Site Title
- Username
- Password
π Click Install WordPress
π 8. Login to Dashboard
π Visit:
http://localhost/mysite/wp-admin
Now you can:
- Create pages
- Install themes
- Build your site
π§π« 9. Teaching Tip (FOR YOUR STUDENTS)
Practical Class Flow:
π΅ Step 1:
Install XAMPP
π’ Step 2:
Start Apache & MySQL
π‘ Step 3:
Create Database
π΄ Step 4:
Install WordPress
⚫ Step 5:
Login & Explore Dashboard
⚠️ Common Errors & Fixes
❌ Apache not starting
π Close Skype / change port 80
❌ MySQL not starting
π Kill existing MySQL in Task Manager
❌ Database connection error
π Check:
- DB name
- Username = root
- Password = empty
π₯ BONUS (REAL LIFE USE)
You can use this to:
- Build school portals
- LMS platforms
- Business websites
No comments:
Post a Comment