6.2 Install Moodle

First step is to remove our placeholder /var/www/moodle' directory using the interactive and recursive flags.

sudo rm -ir /var/www/moodle

$ sudo rm -ir /var/www/moodle rm: descend into directory '/var/www/moodle'? y 
rm: remove regular file '/var/www/moodle/index.html'? y 
rm: remove directory '/var/www/moodle'? y

Change to the /var/www/html directory

cd /var/www/html

sudo git clone git://git.moodle.org/moodle.git

$ sudo git clone git://git.moodle.org/moodle.git 
Cloning into 'moodle'...
remote: Counting objects: 1167105, done.
remote: Compressing objects: 100% (262652/262652), done.
remote: Total 1167105 (delta 869241), reused 1166956 (delta 869092)
Receiving objects: 100% (1167105/1167105), 394.79 MiB | 12.67 MiB/s, done.
Resolving deltas: 100% (869241/869241), done.
Checking out files: 100% (21144/21144), done.

Change to the newly created directory

cd moodle

sudo git branch -a

very slow...

sudo git branch --track MOODLE_39_STABLE origin/MOODLE_39_STABLE

sudo git branch --track MOODLE_39_STABLE origin/MOODLE_39_STABLE
[sudo] password for jimmy: 
Branch 'MOODLE_39_STABLE' set up to track remote branch 'MOODLE_39_STABLE' from 'origin'.

sudo git checkout MOODLE_39_STABLE

$ sudo git checkout MOODLE_39_STABLE
Switched to branch 'MOODLE_39_STABLE'
Your branch is up to date with 'origin/MOODLE_39_STABLE'.

Set up ownership and permissions on the directories required by Moodle.

sudo mkdir /var/moodledata
sudo chown -R www-data /var/moodledata
sudo chmod -R 777 /var/moodledata
sudo chmod -R 0755 /var/www/moodle

Now go to your web page and complete the install. My web address is https://vdsbasic.xyz

Check the folder locations are
  • Moodle directory /var/www/moodle
  • Data directory /var/moodledata

You willl need to enter Moodle database user and password.

All our requirements should be met.
I am still looking at mail setup and this looks promising at [Yandex](https://ukit.com/help/how-do-i-set-up-a-domain-based-email-address-with-yandex)

No comments:

Post a Comment

Introduction to Linux Command Line

SSH is the way you will connect to your Linux server. You will need to understand the basics of the Linux Command Line.