this is installation of Moodle Learning Management System on Linux
The Ubuntu root password user name: jesse Password : dhammu- root
- moodle
database name : moodle
database user : moodle
Database pass: Moodle@127
Connection: Localhost via UNIX socket
socket : /var/run/mysqld/mysqld.sock
- The Moodle main admin username and password
- moodle
- Moodle@127
- An additional admin Moodle username and password
sudo add-apt-repository ppa:ondrej/php

sudo apt-get update && sudo apt-get upgrade

sudo apt-get install apache2

sudo apt-get install php7.3

sudo apt-get install libapache2-mod-php7.3

install additional softwares

sudo apt-get install graphviz aspell ghostscript clamav php7.0-pspell php7.0-curl php7.0-gd php7.0-intl php7.0-mysql php7.0-xml php7.0-xmlrpc php7.0-ldap php7.0-zip php7.0-soap php7.0-mbstring
check php version with

php -v
install mysql server

sudo apt install mysql-server
mysql_secure_installation to set the password and give appropriate permissions


in case your myswl server password is not set you can use the folloing command to do so
mysqladmin -u root password
now install phpmyadmin utility


sudo apt install phpmyadmin php-mbstring php-gettext
of if you want a dedicated program on your server you can also install
mysql workbench utility by
sudo apt-get install mysql-workbench

sudo service apache2 restart
now lets create a file to check the php version and all other settings in one play

we create phpinfo.php file in the web root with folloing code in it.
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>

phpinfo page

now download the moodle code in www directory
and extract it there

and also create moodledata folder the set appropriate permission as follows
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
after doing this go to the browser and open the following url



open my sql command prompt and execute folling command to create the database










CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;





Discover more from Rupinder Singh
Subscribe to get the latest posts sent to your email.


