1. What You Need
Before starting, download:
- XAMPP
- Moodle
👉 From:
📥 2. Install XAMPP
- Install XAMPP
- Open Control Panel
- Start:
- ✅ Apache
- ✅ MySQL
👉 If they turn green → you're good
📂 3. Extract Moodle Files
- Go to:
C:\xampp\htdocs\
- Extract Moodle zip here
👉 Rename folder to:
moodle
🗄️ 4. Create Database
- Open browser:
http://localhost/phpmyadmin
- Click New
- Create database:
moodle
- Collation:
utf8mb4_unicode_ci
⚙️ 5. Start Moodle Installation
Open:
http://localhost/moodle
🔧 6. Configure Settings
👉 Paths
- Web Address:
http://localhost/moodle
- Moodle Directory:
C:\xampp\htdocs\moodle
- Data Directory (IMPORTANT ⚠️):
C:\xampp\moodledata
👉 Create this folder manually!
👉 Database Settings
- Type: MySQL
- Host: localhost
- Database: moodle
- User: root
- Password: (leave empty)
⏳ 7. Install Dependencies
👉 Click Continue
👉 Wait while Moodle installs
👤 8. Create Admin Account
Fill:
- Username: admin
- Password: strong password
- Email: your email
🏫 9. Setup Site
- Site name: Your LMS Name
- Short name: e.g. CCYI LMS
🎉 10. You’re Done!
Open:
http://localhost/moodle
⚠️ COMMON ERRORS (VERY IMPORTANT)
❌ Error: “Data directory not writable”
👉 Fix:
- Right-click
moodledata - Give full permission
❌ Error: max_input_vars too low
👉 Fix in php.ini:
max_input_vars = 5000
Restart Apache
❌ Error: Blank page
👉 Enable errors in php.ini:
display_errors = On
❌ Apache/MySQL not starting
👉 Check:
- Port 80 conflict (Skype, IIS)
- Use port 8080 if needed
🧑🏫 HOW TO TEACH THIS (FOR YOUR STUDENTS)
Practical Class Flow:
- Install XAMPP together
- Extract Moodle
- Create DB
- Run installation
- Login as admin
👉 Give them task:
- Create a course
- Enroll a user
💡 PRO TIP (FROM YOUR EXPERIENCE ZONE)
Since you already deploy LMS:
👉 After localhost setup:
- Move to cPanel hosting
- Configure cron:
*/5 * * * * php admin/cli/cron.php
No comments:
Post a Comment