How to install Moodle CMS in XAMPP Windows 11


Moodle is a learning platform or course management system (CMS). It is very useful when it comes to blended learning, distance education, flipped classroom and other online learning projects in schools, universities and workplaces. Moodle was first developed by Martin Dougiamas. And for this tutorial, we are going to create a website out of it. But first, you need to download the XAMPP file and Moodle installer. I already provided the download links below.


Requirement:


After downloading all the files, continue doing the listed tutorials below.


Table of Content

  • XAMPP installation on Windows 11
  • Running XAMPP Control Panel's Apache and MySQL
  • Copying Moodle installer to HTDOCS folder
  • Creating Moodle Database on XAMPP phpMyAdmin
  • Moodle installation via Localhost or 127.0.0.1
  • Accessing Moodle website home page
  • Accessing Moodle website ADMIN account

Here are the steps on how to install Moodle in XAMPP using Windows


XAMPP installation on Windows 11


1. Open the XAMPP file that you downloaded earlier. If a "Warning" message about User Account Control appears, just click OK.


xampp installation warning about user account control

2. Under Setup - XAMPP, just click NEXT.


xampp installation wizard welcome page

3. In the Select Components, leave it and press NEXT again.


xampp installation select components

4. For Installation folder, leave it also and press NEXT.


xampp installation folder c xampp

5. In the Bitnam for XAMPP, click NEXT again.


bitnami for xampp

6. You are now ready to install XAMPP. Click NEXT to proceed.


xampp is ready to install

7. Wait for the installation to finish.


xampp is unpacking and installing

8. When done, click Finish to exit installer.

xampp is successfully installed

Running XAMPP Control Panel's Apache and MySQL


1. To open XAMPP, you can either click its shortcut located in your desktop or go to Start and search for "xampp" and press ENTER. Inside XAMPP Control Panel, click the two Start buttons for Apache and MySQL.


start apache and mysql in xampp control panel

2. You should now see two Stop buttons. Meaning, Apache and MySQL are both running now.


apache and mysql is now running in xampp control panel

3. If you also see a "Windows Security Alert" just click on Allow access to exit.


allow access for windows security alert regarding xampp mysqld.exe

Copying Moodle installer to HTDOCS folder


1. Back to the Moodle zip file that you downloaded earlier. Extract it and rename your extracted folder as "moodle". Make sure the contents of the extracted folder are not inside a sub-folder. When done, copy your moodle folder. Now, go to Start and search for "this pc" and press ENTER.


search for this pc windows 11

2. Inside This PC, click on your C drive.


windows 11 c drive

3. Inside C drive, find and open xampp folder.


xampp folder located in c drive windows 11

4. Now, open htdocs folder.


htdocs folder located in xampp folder c drive windows 11

5. And inside your htdocs folder, paste here your moodle folder.


copying and pasting the moodle installation folder inside xampp htdocs

Creating Moodle Database on XAMPP phpMyAdmin


1. We need a database to install our moodle website. Open your internet browser. In the address bar, type 127.0.0.1 and press ENTER.


accessing xampp localhost using internet browser

2. Inside, click on phpMyAdmin.


accessing phpmyadmin using xampp localhost

3. Inside phpMyAdmin, click on Databases.



4. In the Create database, name it as moodle_db, next to it change the value to utf8mb4_unicode_ci and press Create to confirm.


accessing phpmyadmin via xampp localhost to make b2evolution databasemoodle database name

5. In the Create table, name it as moodle_table. Leave 4 as it is and press Go.


moodle create table table name

6. For the next one, just name it as moodle and INT for Type (which is pre-selected).


moodle structure name

7. For Collation, select utf8_unicode_ci and leave all the other fields blank.


moodle collation utf8_unicode_ci

8. Lastly, save your work.


save structure collation for moodle

Moodle installation via Localhost or 127.0.0.1


1. We are now ready to install our moodle website. Open your internet browser again. In the address bar, type 127.0.0.1/moodle or 127.0.0.1/moodle/install.php and press ENTER.


accessing moodle installation folder via xampp localhost using internet browser

2. In the Moodle Installation - Choose a language, just leave it as English and press NEXT.


moodle installation choose a language

3. In the Confirm paths, you can change the path for "Data directory" but for this tutorial, I will leave it as it is. When done, press NEXT.


moodle installation confirm paths for moodle data directory

4. In the Choose database driver, just leave it as "Improved MySQL (native mysqli)" and press NEXT.


moodle installation choose database driver

5. In the Database settings, do the following: Database host - localhost, Database name - moodle_db, Database user - root, Database password - blank or none, Database port - 3306. Press NEXT to proceed.


moodle installation database settings

6. In the "Have you read these conditions and understood them?" just press Continue.


moodle installation copyright notice conditions

7. In Server checks, just press Continue again.


moodle installation server checks

8. The moodle website installation is underway. Wait for the installation to finish, it might take a while.


moodle installation is a success

9. When done, you will then need to setup your administrator username and password. Do not forget this credentials, because you will need it later to access your administration page. For Username, just type admin. Enter your desired password, confirm it. Enter also your First and Surname as well as a valid email address. When done, click on Update profile.


moodle website configure administrator account

10. In the "New settings - Front page settings" name your moodle website, type also the short name for it. And lastly, describe your moodle site. Press Save changes when done.


moodle website front page settings

Accessing Moodle website home page


1. To access your moodle website home page, just go to 127.0.0.1/moodle.


sample moodle website homepage

Accessing Moodle website ADMIN account


1. To access your moodle website administrator account, just click the Log in link located at the upper-right corner of your website.


login user admin account moodle website

2. Type your username and password, and press Log in to proceed.


login moodle website admin username and password

3. And you have accessed your administration account. Only you can see and modify the settings and configurations inside it.


sample moodle website admin account page

Done! You have successfully created a moodle website for free. You can now start adding a "Test course" and make your website look more professional.

If you have a question, you can leave a comment below. Thank you!

No comments:

123how.xyz only wants on-topic comment. Do not include any link, else your comment won't be published. Thanks!

Most Read Tutorials:

Powered by Blogger.