Blue Flower

In my previous guide, I wrote a tutorial of installing Moodle learning management system (LMS) on my preferred server operating system (OS) for general users Ubuntu, a Debian based Linux. If you really do not want to try Ubuntu and go ahead with Windows, here I provide a tutorial that was my undergraduate assignment in 2013. Yes, it is behind times but they are still similar where you can maneuver the difference yourself. Another side, if this tutorial does not serve as a guide, then it can serve as a memory for those who are curious of how XAMPP 1.8.1 and Moodle 2.3.2 is back then.

Download XAMPP on http://www.apachefriends.org/en/xampp-windows.html , and install. Open the control panel if already install, apache and mysql is necessary for localhost.

XAMPP control Panel version 3.1.0
Figure 1. XAMPP control Panel version 3.1.0

Open your browser and type http://localhost, if succeeded it should look like below.

XAMPP Localhost frontpage
Figure 2. XAMPP Localhost frontpage

Open http://localhost/phpmyadmin Go to database and add your moodle's database.

adding moodle's database
Figure 3. adding moodle's database

Download Moodle at https://download.moodle.org/ and extract them to C:xampp\htdocs

extracting moodle folder to localhost
Figure 4. extracting moodle folder to localhost

On your browser open http://localhost/moodle and follow the installation which should be similar to my previous guide with just different version.

moodle installation choose language
Figure 5. moodle installation choose language
moodle installation directory path
Figure 6. moodle installation directory path
moodle installation choose database driver
Figure 7. moodle installation choose database driver
moodle installation database setting
Figure 8. moodle installation database setting
moodle installation copyright notice
Figure 9. moodle installation copyright notice
moodle installation final check
Figure 10. moodle installation final check
insert admin profile after successful installation
Figure 11. insert admin profile after successful installation

For moodle to be available in local area network open with notepad C:xamppmoodle\config.php and change the following line:

$CFG->wwwroot = 'http://localhost/moodle'; to your ip address, $CFG->wwwroot = 'http://172.16.150.45/moodle';

DON'T FORGET "http". That was my mistake. Oh and today it is "https" so do keep up with modern times.

enabling moodle for local area network
Figure 12. enabling moodle for local area network
moodle for local area network
Figure 13. moodle for local area network

If you don't know how to configure IP address, go to previous tutorial. Back in my undergraduate course, I was also asked to run Moodle on a local domain. Therefore, the following steps are additional but optional:

find C:\Windows\System32\drivers\etc\hosts
Figure 14. find C:\Windows\System32\drivers\etc\hosts
add your personal domain name ip address translation here
Figure 15. add your personal domain name ip address translation here
find C:\xampp\apache\conf\httpd.conf
Figure 16. find C:\xampp\apache\conf\httpd.conf
include vhost configuration file
Figure 17. include vhost configuration file
the vhost configuration file was in C:\xampp\apache\conf\extra\httpd-vhosts.conf
Figure 18. the vhost configuration file was in C:\xampp\apache\conf\extra\httpd-vhosts.conf
add the virtual host lines binding the ip address to the domain name
Figure 19. add the virtual host lines binding the ip address to the domain name
moodle with personal local domain name ready
Figure 20. moodle with personal local domain name ready

Mirrors