Menu

Moodle development server set up

Installation on debian (e.g. Ubuntu 22.04)

#Install git

sudo apt install git
sudo apt install openssh-server
sudo apt install apache2
cd /var/www/html/
sudo git clone git://git.moodle.org/moodle.git
sudo mkdir /var/www/html/moodledata
sudo apt install postgresql
sudo apt install php-pgsql
sudo apt install php-xml
sudo apt install php-mbstring
sudo apt install php-curl
sudo apt install php-zip
sudo apt install php-gd
sudo apt install php-intl
sudo apt install php-soap
sudo apt install php-common libapache2-mod-php php-cli
sudo chown -R www-data:www-data /var/www
sudo -i -u postgres
psql
CREATE USER moodleuser WITH PASSWORD 'moodleuser';
CREATE DATABASE moodle WITH OWNER moodleuser;

exit

sudo systemctl stop apache2
sudo systemctl start apache2

http://127.0.0.1/moodle/install.php

Follow installation instructions

Leave a Reply

Your email address will not be published. Required fields are marked *