It’s Learning-Management-System tool.

https://www.youtube.com/watch?v=o0nhIZDCb9s

Package Requirement:

PHP:- 5.6 or above
MariaDB:- 5.6 or above
apache:- 2.2 or above

Step1. Install repository

yum install epel-release -y
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Step2. Install packages.

yum install wget httpd mariadb mariadb-server -y
yum install mod_php71w php71w-common php71w-mbstring php71w-xmlrpc php71w-soap php71w-gd php71w-xml php71w-intl php71w-mysqlnd php71w-cli php71w-mcrypt php71w-ldap -y

Step3. Make change in Apache file

sed -i 's/^/#&/g' /etc/httpd/conf.d/welcome.conf
sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/httpd/conf/httpd.conf

Step4. Enable and start service

systemctl enable httpd
systemctl start httpd

Step5. Download software

wget https://download.moodle.org/download.php/direct/stable33/moodle-latest-33.tgz

Step6. Untar file

tar -zxvf moodle-latest-33.tgz -C /var/www/html

Step7. Set permission

chown -R apache:apache /var/www/html/moodle
chmod -R 775 /var/www/html/moodle

Step8. Create data directory

mkdir /var/moodledata    

Step9. Set permission

chown -R apache:apache /var/moodledata
chmod -R 755 /var/moodledata

Step10. Create database

CREATE DATABASE moodle DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'moodleuser'@'localhost' IDENTIFIED BY 'Redhat@123_000';
GRANT ALL PRIVILEGES ON moodle.* TO 'moodleuser'@'localhost' IDENTIFIED BY 'Redhat@123_000' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

Step11. Add line in server.cnf file

vim /etc/my.cnf.d/server.cnf
[client]
default-character-set = utf8mb4
[mysqld]
innodb_file_format = Barracuda
innodb_file_per_table = 1
innodb_large_prefix
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
skip-character-set-client-handshake
[mysql]
default-character-set = utf8mb4

Step12. Create virtual host file

vim  /etc/httpd/conf.d/moodle.conf
<VirtualHost *:80>
ServerAdmin 192.168.72.130
DocumentRoot /var/www/html/moodle/
ServerName  192.168.72.130
<Directory /var/www/html/moodle/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/httpd/moodle.example.com-error_log
CustomLog /var/log/httpd/moodle.example.com-access_log common
</VirtualHost>

Step13. Run script

/usr/bin/php /var/www/html/moodle/admin/cli/install.php

: en
: 2777
: http://192.168.72.130
: /var/moodledata
: mariadb
: localhost
: moodle
: mdl_
:3306
: moodleuser
: yourpassword
: My Moodle Site
: moodle
: admin
:Redhat@123_000
:test@techservicedoc.com
: y

Step14. Access via browser

http://localhost
or
http://ip

For Live Installation you may refer below youtube link:-

https://www.youtube.com/watch?v=o0nhIZDCb9s

LEAVE A REPLY

Please enter your comment!
Please enter your name here