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