Installing Moodle Guide on Debian Based Linux

Moodle Brief Introduction

Installing The Server

sudo apt update && sudo apt full-upgrade
sudo apt install apache2 mysql-server php php-mysql php-xml php-curl php-zip php-gd php-mbstring php-xmlrpc php-soap php-intl
sudo apt install synaptic
sudo service apache2 start
sudo service mysql start

Installing Moodle

Downloading and Placing the Files

sudo nautilus

If you know how to use git, this step is preferred.

sudo apt install git
cd /var/www/html
sudo git clone git://git.moodle.org/moodle.git
cd moodle
sudo git branch -a
sudo git checkout (your preferred version which is usually the latest for example:)
sudo git checkout MOODLE_310_STABLE

Moodle Web Installation

sudo chmod 777 /var/www
sudo chown www-data:www-data /var/www
sudo mkdir /var/www/moodledata
sudo chown www-data:www-data /var/www/moodledata
sudo chmod 777 /var/www/html/moodle
sudo chown www-data:www-data /var/www/html/moodle
sudo touch /var/www/moodle/config.php
sudo chown www-data:www-data /var/www/moodle/config.php
(after installation:)
sudo chown root:root /var/www/moodle/config.php
sudo (your preferred editor) /var/www/moodle/config.php
(mine is:)
sudo gedit /var/www/moodle/config.php

Video Guide

Mirrors

this blog contains all my articles licensed under creative commons attribution customized sharealike (cc-by-sa) where you can sell but mention the open one here

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store