Moodle is a popular open-source learning management system that allows you to create and deliver online courses. In this tutorial, we will guide you on how to install Moodle on your Windows 11 operating system.
Before we start the installation process, make sure that your Windows 11 system meets the following requirements:
First, download the latest version of Moodle from their official website at https://moodle.org/. Once the download is complete, extract the contents of the zip file to a folder of your choice.
To run Moodle on your Windows 11 system, you need to install a web server. Apache is a popular web server that you can use. You can download Apache from their official website at https://httpd.apache.org/.
Follow the installation process and make sure to select the options to use Apache as a service and to install it as a Windows service. Once installed, you can start Apache by clicking on the 'Start Apache' button in the Apache Start menu.
You'll also need to install PHP on your Windows 11 system. You can download the latest version of PHP from their official website at https://www.php.net/.
Follow the installation process and make sure to select the options to install PHP as a module for Apache. Once installed, you can verify that PHP is working by creating a file named test.php in your Apache document root directory (usually located in C:\Program Files\Apache Group\Apache2\htdocs). The contents of the file should be:
<?php
phpinfo();
?>
Save the file and open it in a web browser by visiting http://localhost/test.php. You should see a PHP version information page.
Next, you need to install a database server. MySQL is a popular choice for Moodle installations. You can download the latest version of MySQL from their official website at https://dev.mysql.com/downloads/mysql/.
Follow the installation process and make sure to select the options to install MySQL as a Windows service and to add the MySQL bin directory to your system PATH environment variable. Once installed, you can start MySQL by clicking on the 'Start MySQL' button in the MySQL Start menu.
To create a MySQL database and user for Moodle, follow these steps:
Open a command prompt and navigate to the MySQL bin directory (usually located in C:\Program Files\MySQL\MySQL Server 5.5\bin).
Type the following command and press Enter to log in to MySQL:
mysql -u root -p
You will be prompted to enter your MySQL root password.
Once logged in to MySQL, type the following commands to create a new Moodle database and user:
create database moodle;
grant all on moodle.* to 'moodleuser'@'localhost' identified by 'moodlepassword';
Replace 'moodleuser' and 'moodlepassword' with your desired Moodle database user and password.
Type the following command to exit the MySQL shell:
exit
Now that you have installed all the required software, it's time to configure Moodle. Navigate to the moodle directory that you extracted in Step 1 and open the config.php file in a text editor.
Make the following changes to the config.php file:
Locate the following line:
$CFG->wwwroot = 'http://localhost/moodle';
Change it to:
$CFG->wwwroot = 'http://localhost';
Locate the following lines:
$CFG->dbtype = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'moodleuser';
$CFG->dbpass = 'moodlepassword';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array(
'ssl' => true,
);
Replace 'moodleuser' and 'moodlepassword' with your MySQL database user and password from Step 5.
Save and close the config.php file.
Finally, you are ready to install Moodle. Open a web browser and navigate to http://localhost/. You should see the Moodle installation page.
Follow the on-screen instructions to complete the installation process. You will be asked to provide some basic information about your Moodle site, create an administrative account, and configure the site settings.
Once the installation is complete, you can log in to your Moodle site and start creating courses and adding content.
Congratulations! You have successfully installed Moodle on your Windows 11 system. With Moodle, you can create and deliver online courses, track students' progress, and engage with your learners. Happy teaching and learning!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!