How to use moodle (installation)
What is moodle?
Moodle is an open source e-learning platform. It has a relatively large number of users among similar systems.
Moodle is a software package that helps educators create high-quality online learning processes (courses). Such an e-learning system can be called a Learning Management System (LMS), Course Management System (CMS), Virtual Learning Environment (VLE), or simply an online learning environment: VLE), or simply an online education system.
Excerpt from wiki
Preparing a server to install moodle
If you want to use moodle in your school or company, you will need to prepare a dedicated server. In recent years, there are many rental servers available, and many people are likely to use them. In this article, we will use EC2 within AWS (AmazonWebService).
After registering with AWS, you will come to the EC2 screen.
An instance is a server. So, click on "Create Instance" to create a new instance.
Select the software for the instance. In this case, we will use AMI.
Select the instance type. Performance and price will vary depending on the type. The lowest spec t2.nano is sufficient for operation.
Detailed settings are available, but the default settings are fine for this time.
Storage is to be added, but this time the default settings will be fine.
Add tags to make it easier to identify instances. You do not need to add anything in particular.
Set the security group settings. Since access is also possible via HTTP, add HTTP to the rules. The security group can be changed at any time, so please set your own security group when you actually use the system.
Finally, check the security group. If all is well, click "Create".
The instance has been launched. Next, prepare the contents of the instance.
Connecting via SSH
Launch a terminal and access via SSH. You can access with "ssh username@IP address -i configured key pair". The black part is private information and is hidden.
If the access is successful, it will be displayed as shown in the image. Next, we will set up the minimum environment to use moodle.
First, change to root with "sudo -i". If $ displayed before the command is changed to #, you are root.
Install apache
Install apache. Enter "yum install -y httpd24". After installation is complete, enter "chkconfig httpd on" to set up automatic startup of apache.
Enter "vim /etc/sysconfig/i18n" to set the language setting to Japanese, rewrite "LANG=ja_JP.UTF-8" and save.
Enter "cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime" to set the time to use the Tokyo standard. You will be asked if you want to rewrite it, answer "yes".
After completing the configuration, enter "service httpd start" to start apache. Enter "service httpd status" to check if it has started. If you see "httpd (pid ****) is running...", it is running. is running..." is displayed, it is running.
It is OK if the apache page is displayed when accessing with http://XXX.XXX.XXX.XXX (GlobalIP: IP for SSH connection).
Install PHP
Install apache. Enter "yum install -y php56".
Next, change the time of PHP to Japan. Enter "vim /etc/php.ini".
php.ini is a long file, so type "/date.timezone" to search for it. Change ";date.timezone =" to "date.timezone = 'Asia/Tokyo'" and save it.
Install Mysql
Install Mysql. Enter "yum install -y mysql-server". After installation is complete, enter "chkconfig mysqld on" to set up automatic startup of mysql. Start Mysql with "service mysqld start". Enter "service mysqld status" to check if it has started. If you see "mysqld (pid ****) is running...", it is running. is running..." is displayed, Mysql is running.
Next, set the password for mysqld.
Enter "mysql -uroot" and log in as root.
Enter "set password for root@localhost=password('pass');" in the query. Then log out with "exit".
Next, configure security. Enter "/usr/bin/mysql_secure_installation". The configuration is done interactively. Enter the following.
Enter current password for root (enter for none): (the password for the MySQL:root user you just used)
Change the root password?
Remove anonymous users?
Disallow root login remotely?
Remove test database and access to it?
Reload privilege tables now?
Now that the settings have been changed, restart Mysql by entering "service mysqld restart".
Install phpMyAdmin
Since phpMyAdmin is useful for operating Mysql, install it as well.
Enter "yum --enablerepo=epel install -y phpMyAdmin".
Enter "vim /etc/httpd/conf.d/phpMyAdmin.conf", and then type
Make changes as shown in the following figure and save the changes.
When you have finished making changes, restart apache by entering "service httpd restart" to reflect the changes.
Install moodle
To install moodle, download the latest version of moodle from the download page of moodle's official site.
Copy the downloaded moodle files to the server. There are many ways to do this, but for this article, we will use "Cyberduck".
Download "Cyberduck" and launch it. Click on "New Connection" and enter the information as shown in the image.
After connecting, you should see "/home/ec2-user" and copy the downloaded moodle file to the server by drag & drop.
Operate the terminal again.
The uploaded file has been moved to "/var/www/html".
Following that, this time create a folder "moodledata" in "/var/www".
Change the permissions as moodle cannot write to this folder.
If the permission of moodledata is "drwxrwxrwx", it is OK.
Finally, unzip the moodle files. Go to "/var/www/html" and extract the files with "tar xvzf filename".
http://XXX.XXX.XXX.XXX/moodle
and set the Japanese language from the pull-down in the center, as shown in the image below.
Installation is now complete.
Initial configuration of moodle
Now that you have reached this point, you are ready to go one step further. Click Next.
Since moodledata is already prepared, click Next.
Click Next.
Enter the user as root and the password set in Mysql, and click Next.
I was told that config.php could not be created, so I opened a terminal three times and connected via SSH.
I entered as root and typed "vim /var/www/html/moodle/config.php" I copied all the php code shown on the moodle initialization page and saved it. Then click next.
It says that it is copyright free and you can use it as you like. Click Continue.
You will be asked to check your operating environment. The minimum environment is ready, so click Continue.
The check will take a little time. When all checks are complete, the screen scrolls to the bottom. Click Continue.
Follow the prompts to register users who can handle all functions.
Set up the site name and other settings. You can change the settings, so feel free to enter your own.
When the above screen appears, the initial setup is complete.
Thank you for your hard work. However, this is just the start of the process. You must have thought that after all this work, you need to do all this just for preparation.
I'd like to use e-learning more comfortably and for free.
If you want to use e-learning more comfortably, we recommend our learningBOX.
Up to 10 accounts are free. No need to set up any servers. Just register as a user and you can start using our e-learning service right away. Click here to register for free.