In this tutorial, we will guide you through the process of installing and configuring Moodle on an Ubuntu server using the Command Line Interface (CLI). We will cover everything from installing the necessary dependencies to setting up the database for Moodle. This tutorial is perfect for anyone looking to set up a Moodle server for online learning and course management.
#lms
#moodle
#ubuntu
Commands :-
****Install Apache/MySQL/PHP*****
sudo apt update
sudo apt install apache2 mysql-client mysql-server php7.4 libapache2-mod-php
*****Install Additional Software*******
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
sudo service apache2 restart
sudo apt install git
******Download Moodle**********
cd /opt
sudo git clone [ Ссылка ]
cd moodle
sudo git branch -a
sudo git branch --track MOODLE_400_STABLE origin/MOODLE_400_STABLE
sudo git checkout MOODLE_400_STABLE
******Copy local repository *******
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 0755 /var/www/html/moodle
sudo service mysql restart
sudo mysql -u root -p
CREATE DATABASE moodle DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
create user 'rkilab'@'localhost' IDENTIFIED BY 'password';
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,DROP,INDEX,ALTER ON moodle.* TO 'rkilab'@'localhost';
quit;
SELECT password('password');
**********Complete Setup*********
sudo chmod -R 777 /var/www/html/moodle
sudo chmod -R 0755 /var/www/html/moodle
[ Ссылка ]
Ещё видео!