PHP Installation

https://docs.moodle.org/310/en/Step-by-step_Installation_Guide_for_Ubuntu

Step 1 Install Linux,

Follow the notes on apache for installation and configurations. apache

php,

Follow the notes on php for installation and configurations.

Some php extensions needed for moodle to work sudo apt install graphviz aspell ghostscript clamav php7.4-pspell php7.4-curl php7.4-gd php7.4-intl php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-ldap php7.4-zip php7.4-soap php7.4-mbstring

postgresql Follow the notes on PostgreSQL for installation and configurations.

create database using graphical userinterface

user = moodle_admin database = moodle

assign static ip

Follow the notes on Git for installation and configurations.

cd /opt

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

or better you can copy fromm the usb device with the following command

you can see the device name with the following command

lsblk

mount /dev/device-name foldername

example

mount /dev/sdb1 usb

cd moodle

sudo git branch -a

sudo git branch –track MOODLE_39_STABLE origin/MOODLE_39_STABLE

sudo git checkout MOODLE_39_STABLE

Step 5: Copy local repository to /var/www/html/

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

sudo mkdir /var/moodledata

sudo chown -R www-data /var/moodledata

sudo chmod -R 777 /var/moodledata

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

Open your browser and go to http://IP.ADDRESS.OF.SERVER/moodle

Follow the prompts: Change the path for moodledata

/var/moodledata

Database Settings

Host server: localhost

Database: moodle

User: moodledude (the user you created when setting up the database)

Password: passwordformoodledude (the password for the user you created)

Tables Prefix: mdl_

After that restart apache server.

switch to postgres user and psql shell

then create a user and asign a password

postgres=# CREATE USER moodleuser WITH PASSWORD ‘yourpassword’;

Previous
Next