At this point of the installation of the test lab environment, make sure that the DNS record of the domain name o2m.contoso123.fr points to the Moodle server. If this is the case, you can continue. If not, repeat the previous steps.
40.Setting up Moodle from the web
Proceed as follows to install Moodle from the web:
-
Go to https://o2m.contoso123.fr.
-
Select English (en) – or the language of your choice-, and then click Next.
-
Type "/var/moodledata/moodle27" in Data directory, and then click Next.
-
Select Enhanced MySQL (native, mysqli) in Type, and then click Next.
-
Enter:
-
"m2o-mysql" in Database server,
-
"moodle27" in Database name,
-
"moodleadmin" in Database user,
-
"moodleazure" in Database password,
-
"3306" in Database port.
-
Click Next.
Note Keep the default value mdl_ in the Tables prefix field.
Note 3306 is the default port of the MySQL database.
-
Read the conditions of use of Moodle, and then click Continue. Moodle then checks the prerequisites for the installation. Every status must be OK in order to continue.
-
Click Continue. Moodle is then installed component by component. This may take a few minutes.
-
Once all the components have been installed, click Continue.
41.Creating the administrator account of the Moodle platform
At this point of the installation, we are going to create the administrator account of the Moodle platform.
Proceed with the following steps:
-
In the Installation dialog, fill in at least the empty compulsory fields of the administrator profile, i.e. New password ("CustomAdminPassword") and email address ("admin@contoso123.fr").
Note You can also personalize the other fields of the platform administrator profile on this page. These settings can be changed at a later date.
-
Click Save profile.
42.Configuring the front page
We are now going to configure the Moodle front page.
Proceed with the following steps:
-
In New settings – Settings for the next front page, enter at least the compulsory empty fields of the home page, i.e. the Complete site name ("Contoso University" in our illustration) and the Abbreviated site name ("Contoso University").
Note These settings can be changed at a later time.
-
Click Save changes.
The setup of a standard Moodle platform is now complete at this stage.
You are redirected to the platform's home page.
43.Locking the Moodle configuration files
On the Moodle server, you must now protect the Moodle configuration files against being modified from the Moodle web for security reasons.
If you have logged off the Moodle server, log on again by repeating steps 1 à 3 in section § Setting up the Apache HTTP server.
Enter the following commands from the SSH console:
root@m2o-moodle:~$ cd /var/www
root@m2o-moodle:/var/www$ chmod o-w moodle27
44.Setting up the Microsoft resources for Moodle
The integration between Office 365 and Moodle is based on two sets of Microsoft plugins for Moodle.
-
Office 365 integration plugins. This set of six plugins integrates Moodle with Word Online, OneDrive for Business, the Outlook calendar and other functionality, such as Office Mix. This set of plugins uses the Azure AD directory to provide a single sign-on (SSO) service with Office 365.
-
Microsoft Services plugins. This set of seven plugins completely integrates Moodle and OneNote to improve the management of assignments, submissions to assignments for the students and the teachers' comments on the assignments submitted.
Note Introducing OneNote Class Notebooks—a flexible digital framework for teaching and learning48 describes the use of digital OneNote notebooks for teaching.
There are several methods to install the Moodle plugins:
-
From the directory of Moodle plugins (i.e., from Moodle.org),
-
From a ZIP file,
-
From a FTP client,
-
Directly on the Moodle server.
The first method is the preferred one since it guarantees to have the latest version of the plugin that is compatible with the version of Moodle that we have installed.
This method however requires to freely register on the Moodle.org site. We will use this method to install our test lab environment.
45.Creating a free account on Moodle.org
To create a free account on Moodle.org, proceed with the following steps.
-
Open a browsing session and navigate to https://moodle.org/?lang=us.
Note The Moodle.org site is based on Moodle.
-
Click Log in in the top right of the screen.
-
Click Create new account.
-
Complete at least the mandatory fields: Username, Password, Email address, Email (again), First name and Last name, and answer the security question.
-
Click Create new account.
Note A request for confirmation of the registration is sent to the email address entered in the form. Click on the link in this email address to activate the account.
Now that the Moodle.org account is active, we can install the Moodle plugins.
Proceed with the following steps:
-
Log onto the site https://moodle.org using the username and the password defined in the previous section.
-
Navigate to the Moodle platform https://o2m.contoso123.fr and, if necessary, sign-in with the administrator account again by clicking Log in in the top right of the screen.
-
Under ADMINISTRATION on the left pane, click Site administration, plugins, and then Installer plugins.
-
Click Install plugins from the Moodle plugins directory. You should then be redirected to the Moodle.org site.
-
Click Log in.
-
Log in using the username and the password defined in the previous section.
Note This step establishes the link between the Moodle platform o2m.contoso123.fr and the Moodle.org account that we have just created.
-
Enter Office 365 in the search field and click Search plugins.
-
Click the plugin OpenIDConnect.
-
Click Install now.
-
Click Install now on the line Université Contoso.
-
Click Continue. Moodle checks the plugin before installing it. All the tests must be OK in order to continue.
-
Click Install plugin.
-
Repeat the steps 8 to 12 for the 12 other Microsoft plugins.
Microsoft Office 365 Integration (local_o365)
Office 365 Integration (local_office365)
Office365 Connection (profilefield_o365)
OneDrive for Business (repository_office365)
OpenIDConnect Management (profilefield_oidc)
Microsoft Account (local_msaccount)
Microsoft OneNote (local_onenote)
Microsoft OneNote (repository_onenote)
Microsoft Services (local_microsoftservices)
OneNote block (block_onenote)
OneNote Feedback (assignfeedback_onenote)
OneNote submissions (assignsubmission_onenote)
oEmbed Filter (filter_oembed)
Note For more information about the role of each one of the plugins listed above, see Appendix A Microsoft plugins.
Note All these plugins are accessible from the results49 that is made in step 7, apart from the oEmbed Filter plugin, for which a new search must be run50. In step 8, it is possible to open the download page of each plugin in a new tab to make the installation of the plugins easier.
Note The database cannot be updated before installing all the plugins because some of them are required by others.
-
Once the last plugin has been installed, click Update the database now.
-
Once all the updates have been completed, click Continue.
Moodle displays the list of the newly available settings, following the installation of the new plugins. There is no need to apply these settings at this point.
Navigate to https://o2m.contoso123.fr to return to the home page of the Moodle platform and ignore these settings for the time being.
47.Starting cron on the HTTP server
cron is a program that automatically executes scripts or commands, on a given date and at a given time specified in advance. Moodle uses cron to schedule its maintenance operations.
To start cron, proceed with the following steps:
-
If you have logged off the Moodle server, log on again by repeating steps 1 to 3 in section § Setting up the Apache HTTP server.
-
Edit the cron configuration file.
root@m2o-moodle:~$ crontab -e
-
Select the vim text editor.
-
Add the following line at the end of the file.
*/10 * * * * /usr/bin/wget -q -O /dev/null https://o2m.contoso123.fr/admin/cron.php
Note This command executes the Moodle cron PHP script every 10 minutes.
-
Save changes and exit the text editor.
:wq
Share with your friends: |