How to Install Moodle with Nginx on Ubuntu 18.04

I have already discussed about how to install Moodle on Ubuntu 18.04 where the web server used is the Apache web server. This time Moodle is installed on the Nginx web server.

0.Software used

The software used in this tutorial is:

  • OS: Ubuntu 18.04
  • Web server: Nginx 1.14
  • PHP Engine: PHP v7.2
  • Database: MariaDB 10.1
  • Moodle: Moodle v3.8
  • Subomain: moodle.dreamblog.us
  • SSL: Let’s Encrypt

1.Install Nginx

Update Ubuntu then install Nginx

2.Install MariaDB

Install MariaDB database

Secure the MariaDB installation

Answer the question

Configure MariaDB

Add a configuration below [mysqld]

MariaDB configuration

Restart MariaDB

Login in to MariaDB

Create a database for Moodle

Create database

3.Install PHP-FPM

Install PHP-FPM include module

Configure php.ini

Change the configuration options below

Restart PHP-FPM

4.Download Moodle

Download Moodle v3.8

Create a folder for Moodle

Configure the Nginx server block for moodle.dreamblog.us

Enter the configuration below

Test and restart Nginx

5.Install SSL Let’s Encrypt

Install the certbot repository

Install certbot for Nginx

Request SSL for subdomain moodle.dreamblog.us

Enter email address

Agree ToS

Consent to be sent information about Let’s Encrypt, you can answer Y or N.

An SSL certificate was created, changed and added a virtual host configuration for SSL.

Then choose 2 for redirect HTTP to HTTPS.

Install SSL for moodle.dreamblog.us

The SSL certificate is only valid for 90 days, renewing to renew the SSL certificate

6.Install Moodle

Browse https://moodle.dreamblog.us

Language selection, Next

Fill directory data with /var/www/moodle/data

Database driver, select Type MariaDB (native/mariadb)

Enter the database name, database user, and database password

Confirm license, Continue

Check the server if the server is ready to install Moodle

Installation running

Create an administrator account

Enter Full site nameShort name for site and Front page summary

If successful, go directly to the administrator dashboard

Mungkin Anda Menyukai

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *