Thursday, April 16, 2026

🚀 MOODLE INSTALLATION WITH XAMPP (STEP-BY-STEP)

 

1. What You Need

Before starting, download:

  • XAMPP
  • Moodle

👉 From:

📥 2. Install XAMPP

5
  1. Install XAMPP
  2. Open Control Panel
  3. Start:
    • ✅ Apache
    • ✅ MySQL

👉 If they turn green → you're good

📂 3. Extract Moodle Files


  1. Go to:
C:\xampp\htdocs\
  1. Extract Moodle zip here

👉 Rename folder to:

moodle

🗄️ 4. Create Database


  1. Open browser:
http://localhost/phpmyadmin
  1. Click New
  2. Create database:
moodle
  1. 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:

  1. Install XAMPP together
  2. Extract Moodle
  3. Create DB
  4. Run installation
  5. 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

📚 HOW TO REGISTER FOR AMAZON KDP (STEP-BY-STEP)

   1. What is KDP? KDP is Amazon’s platform that allows you to: Publish ebooks 📱 Publish paperbacks 📖 Earn royalties 💰 👉 No publisher n...