From Script | Spoken-Tutorial
Jump to: navigation, search
Visual Cue Narration
Show Slide 1:

Installing Moodle on Local Server.

Welcome to the Spoken Tutorial on Installing Moodle on Local Server.
Show Slide 2:

Learning Objectives:

In this tutorial, we will learn how to
  • Download Moodle and
  • Install Moodle
Show Slide 3:

System Prerequisites

To install Moodle in your system, you should have a system supporting:
  • Apache 2.x (or higher version)
  • MariaDB 5.5.30 (or any higher version) and
  • PHP 5.4.4 +(or any higher version)
Show Slide 4:

OS, Web Server and Moodle Versions

To record this tutorial, I will be using:
  • Ubuntu Linux OS 16.04
  • Apache, MariaDB and PHP obtained through XAMPP 5.6.30
  • Moodle 3.3 and
  • Firefox web browser.

You can use any web browser of your choice.

However, Internet Explorer should be avoided, as it causes some display inconsistencies.

Please ensure that you have Internet connectivity before you begin.
Show Slide 5:

Prerequisites check

Also refer to the previous tutorials in this series.

And ensure that the prerequisites are met and the database is setup properly.

  • We should have XAMPP running and
  • We should have a database set up with username moodle-st
Open Firefox

In the address bar type, >> press Enter.

First, let me go to the web browser and launch XAMPP.

In the address bar, type http colon double slash 127 dot 0 dot 0 dot 1 and press Enter.

In the top menu >> click on phpinfo In the menu at the top right of the screen, click on PHPinfo.
Type Ctrl+F >> type DOCUMENT_ROOT in the search window >> Press Enter Now press Ctrl + F keys and search for DOCUMENT underscore ROOT.
Point toApache Environment. It will be found in the table Apache Environment.
The value of DOCUMENT underscore ROOT will be either
  • slash opt slash lampp slash htdocs or
  • slash var slash www
Point or highlight /opt/lampp/htdocs. In my machine, it is slash opt slash lampp slash htdocs.
Please make a note of this path.

We are going to install Moodle here.

Downloading Moodle (Browser)

Go to

Let’s now start downloading Moodle.

Go to the official website of Moodle which is

Click on Downloads >> click on MOODLE 3.3. Click on the Downloads link in the top menu.

And then click on the latest release button MOODLE 3.3+.

At the time of recording this tutorial, the latest stable Moodle version is 3.3.

It could be different when you try.

Click Download zip button. Click on the Download zip button.

This will start downloading Moodle on our machine.

I have already downloaded this file and it is in my Downloads folder.

So I will skip this step.

Open the terminal by pressing Ctrl + Alt + T keys together.
Switch to the terminal On the terminal, I will change the directory to Downloads.
Switch to the terminal >> Type

cd Downloads

To do that, type the command:

cd space Downloads and press Enter. You will have to type the path where you downloaded Moodle on your system.


ls >> press Enter. Point to moodle zip file.

Once you are in that directory, type ls and press Enter to list the files therein.

Here is my Moodle installation file.

It has the name moodle hyphen latest hyphen 33 dot zip

If you had renamed it to some other name during download, then locate that file in your folder.

Next, we have to extract the contents of this zip file into the moodle folder.

sudo unzip -d /opt/lampp/htdocs/

At the command prompt, type:

sudo space unzip space moodle hyphen latest hyphen 33 dot zip space hyphen d space slash opt slash lampp slash htdocs slash Now press Enter.

Press Ctrl + L Let’s clear the terminal by pressing Ctrl + L.
Type cd /opt/lampp/htdocs Now type

cd space slash opt slash lampp slash htdocs and press Enter.

Type ls

Highlight the Moodle directory

To list the files in this directory, type ls and press Enter.

You can see that a new folder named moodle has been created.

Give read, write and execute permissions

Type sudo chmod 777 moodle/

Let us give read, write and execute permissions to the owner and the group members of moodle folder.

So type - sudo space chmod space 777 space moodle slash and press Enter.

Enter the administrative password if prompted and press Enter.

(Switch to browser) Or http://localhost/moodle

Now switch to the browser and type -

http colon double slash slash moodle or http colon double slash localhost slash moodle

Highlight localhost I have typed my localhost IP here.

This IP necessarily has to be the IP of the machine on which moodle is installed.

Please note that moodle is the folder into which we had extracted earlier.

Press Enter Press Enter and you will see the Moodle installation page.
By default, we are in step number one, that is, Configuration.

Pls note: Moodle can be installed in multiple languages.

Select English >> click on Next button. But we will limit ourselves to English language only.

So, select English here. Click on Next button below the language dropdown.

Paths: Next is the Paths page.

This is where the web address, moodle directory and data directory are defined.

Show Slide 7: Web Address Web address is the URL for us to access Moodle once installed.

This is the same URL that we entered above, which is shown here:

Show Slide 8: Moodle directory Moodle directory is the folder where all the Moodle code is available.

Notice here - both Web address and Moodle directory are non-editable fields.

These cannot be changed by us.

Switch to the browser. Highlight Data directory.

Show Slide 9: Data directory

Next is the Data directory.

This is the folder where all file content uploaded by teachers and students, will be stored.

This folder needs to have read and write permission so the files can be stored here.

However it should not be directly accessible on the web for security reasons.

So, it is to be kept outside of the installation folder.

Switch to the browser. moodledata inside the folder lampp is the default data directory which the installer tries to create.

However, it does not have the permission to create a folder here.

So, we have to create this folder manually and give it the required permissions.

Click on Terminal window. Go to the terminal window.
In the terminal window, type

sudo mkdir /opt/lampp/moodledata

At the prompt, type

sudo space mkdir space slash opt slash lampp slash moodledata and press Enter.


sudo chmod 777 /opt/lampp/moodledata

Now, type - sudo space chmod space 777 space slash opt slash lampp slash moodledata

and press Enter.

Browser Go back to the browser now and click on Next button.
Choose Database driver (browser): After this comes the database configuration page.

Select MariaDB from the dropdown and click on the Next button.

Database configurations (browser): Enter localhost as the Database Host Name.

Now, we have to enter the database name, username and password.

These are the ones we created earlier in phpMyAdmin.

Database name

Type moodle-st

I will enter moodle-st as the database name.
Database User

Type moodle-st

Then moodle-st as the database username.
Database Password

Type moodle-st

And moodle-st as my database password.
Click on Next. Leave the Table Prefix and the other fields as they are and click Next.
Click on Continue We can see a terms and conditions page.
License >> Click on Continue This is the step where you need to read the license agreement and agree to the same.

Read the text and then click on Continue.

Point to Server Checks We can see the Server Checks page next.

Scroll down to see the message Your server environment meets all minimum requirements.

Show the screen shot

Add the text: Refer to the Additional reading material link of this tutorial for the solution.

You may get other errors as shown:

Refer to the Additional reading material link of this tutorial for the solution.

Click on Continue. Click on Continue.
This step may take some time depending on your Internet speed.

You may get an error message Site is being upgraded, please retry later if you refresh the page.

In that case, please refresh after some time.

Click Continue Click Continue when you get a success message for the installation.
The next page is for administrator configuration.
Type admin as username. Enter the username that you want for the Moodle Administrative page.

I will enter the username as admin.

Default Password rules for Moodle

Highlight the rules on the screen

Now enter a password for the Moodle Administrator.

The password here must follow these rules as shown here.

Type Spokentutorial1@ as password. To enter the password, click on Click to enter text link.

I will enter Spokentutorial1@ as my admin password. Click on Unmask icon to reveal the password.

Note down the username and password that you have created for future use.
Type in the email address field. Email address is a mandatory field.

I will enter here.

Select a country -> India

Timezone -> Asia/Kolkata

In Select a country dropdown, select India.

Select the timezone as Asia/Kolkata

We will leave rest of the fields with their default values.
Click Update Profile. Scroll down and click on Update Profile button.
Please note that Moodle is a resource consuming software.

Every step may take time to complete.

Please wait for the next page to load and do not close or refresh the page.

The next screen is for Front page settings.

This is the page people will see when they visit our moodle site.

Type Digital India LMS in Full Site Name field Enter Digital India LMS as the Full Site Name.
Type Digital India LMS in Short name for site field Enter Digital India LMS again as the Short name for site.

This is what will be visible as the name of the moodle site in the navigation bar.

Let us leave the Front Page Summary as blank for now.
Timezone: Asia/ kolkata Select the timezone as Asia/Kolkata.
Self Registration : Disable.

Click on Save Changes.

The next dropdown is Self Registration.

If Self Registration is enabled, then new users can register themselves on their own.

Select Disable from the dropdown.

No-reply address: Next is the text box no-reply address.

The default value in this field is noreply@localhost.

Since this is not a valid email ID, change it to

This email ID will be shown as From address, when Moodle does not have any email ID to show.

For example.

If I specify to keep my address as private, all mails sent on my behalf will have this email ID.

Click on Save Changes. Lastly, click on Save Changes button.
We are now ready to use Moodle.

You can see the front page of the new site here.

Show Slide 12:


With this we come to the end of this tutorial. Let us summarize.

In this tutorial, we learnt to:

  • Download Moodle from and
  • install Moodle on local server
Show Slide 13:

(About Spoken Tutorial Project)

The video at the following link, summarizes the Spoken Tutorial project.

Please download and watch it.

Show Slide 14:

(About Spoken Tutorial Project)

The Spoken Tutorial Project Team conducts workshops and gives certificates.

For more details, please write to us.

Show Slide 15:

(About Spoken Tutorial Forum)

* Do you have questions in THIS Spoken Tutorial?
  • Please visit
  • Choose the minute and second where you have the question
  • Explain your question briefly
  • Someone from our team will answer them
Show Slide 16: * The Spoken Tutorial forum is for specific questions on this tutorial
  • Please do not post unrelated and general questions on them
  • This will help reduce the clutter
  • With less clutter, we can use these discussion as instructional material
Show Slide 17:


Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.. More information on this mission is available at the link shown.
This script has been contributed by Priyanka.

This is Nancy Varkey along with the spoken tutorial team signing off. Thank you for joining.

Contributors and Content Editors

Itspriyanka, Nancyvarkey, Nirmala Venkat