Skip to content

Moodle 3.2 Installation on Ubuntu

Step -1: Change the directory and clone moodle repo

$ cd /opt
$ sudo git clone git://git.moodle.org/moodle.git

Step -2: Check all the available branches and select the latest stable branch

$ cd moodle
$ sudo git branch -a
$ sudo git branch --track MOODLE_32_STABLE origin/MOODLE_32_STABLE
$ sudo git checkout MOODLE_32_STABLE

Step -3: Copy the stable branch to working directory

sudo cp -R /opt/moodle /var/www/html/

Step -4: Create a moodle data directory and add permissions

$ sudo mkdir /var/moodledata
$ sudo chown -R shashi:shashi /var/moodledata
$ sudo chmod -R 777 /var/moodledata

Step -5: Change permissions on moodle directory

sudo chmod -R 0755 /var/www/html/moodle
sudo chmod -R 777 /var/www/html/moodle

Shashi View All

A passionate devops and automation engineer

Leave a comment