Would you like to learn how to do a Moodle installation on Ubuntu Linux? In this tutorial, we are going to show you how to install, configure and access Moodle on a computer running Ubuntu Linux.

• Ubuntu 18.04
• Ubuntu 19.04
• Moodle 3.8.1

Moodle Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Moodle.

Tutorial - Moodle Installation on Ubuntu Linux

Install a list of required applications.

Copy to Clipboard

Install the MySQL database service.

Copy to Clipboard

Install the Apache webserver with PHP support.

Copy to Clipboard

Restart the Apache service.

Copy to Clipboard

Download and install the Moodle application.

Copy to Clipboard

Create a required directory named moodledata.

Copy to Clipboard

You have finished the moodle installation.

Tutorial Moodle - Database Configuration

Access the MySQL service command-line.

Copy to Clipboard

Create a database named moodle.

Copy to Clipboard

Create a MySQl user named moodle.

Copy to Clipboard

In our example, the password kamisma123 was set to the MySQl user named moodle.

Give the MySQL user named moodle permission over the database named moodle.

Copy to Clipboard

You have finished the moodle database installation.

Tutorial - Moodle Web Installer

Open your browser and enter the IP address of your web server plus /moodle.

In our example, the following URL was entered in the Browser:

• http://192.168.0.10/moodle

The Moodle web installation interface should be presented.

Select the desired language and click on the Next button.

moodle install language

Check the moodle installation URL, directory, data directory and click on the Next button.

moodle installation path

Select the Improved MySQL (native/mysqli) and click on the Next button,

Enter the Database information required to connect to the Moodle database.

• Database host: localhost
• Database name: moodle
• Database password: kamisama123
• Tables prefix: mdl_

moodle installation database configuration

On the next screen, read the license agreement and click on the the Next button.

moodle installation license agreement

Make sure all PHP requirements are met and click on the Continue button.

moodle php requirements

Wait the moodle installation to finish and click on the Continue button.

moodle installation ubuntu

On the next screen, perform the following configuration:

• Username - Enter the administrative user account name desired
• Choose an authentication method - default
• New password - Enter the administrative user password
• First name - The administrator's Name
• Surname - The administrator's Surname
• email address - The administrator's email address
• Select a Country - The administrator's country
• Timezone - Select the desired timezone

Click on the Update Profile button.

moodle administrator account

Enter a name and a description to your Moodle website.

moodle installation site description

Select the correct timezone, disable the self registration feature and set an outgoing email address.

moodle settings

Click on the Save changes button to access the Moodle dashboard.

moodle dashboard

Congratulations! The Moodle installation was finished successfully.