Reference : https://www.unixmen.com/install-moodle-3-0-centos-7/

Step :1 Download Moodle

[root@gateway]# cd  /var/www/html
[root@gateway]# wget https://download.moodle.org/stable30/moodle-3.0.tgz
[root@gateway]# tar -xvf moodle-3.0.tgz
[root@gateway]# chown -R apache:apache /var/www/html/moodle
[root@gateway]# chmod -R 755 /var/www/html/moodle

Step-2 Make Directory on /var/www/moodledata

[root@gateway html]# cd /var/www/
[root@gateway www]# mkdir moodledata
[root@gateway www]# chmod -R 755 /var/www/moodledata
[root@gateway www]# chown -R apache:apache /var/www/moodledata

Step-3 Create Database “moodle”

[root@gateway www]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 137
Server version: 5.5.47-MariaDB MariaDB Server
Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> show databases;

MariaDB [(none)]> create database moodle;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> create database moodle;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> create user 'admin.sso'@'localhost' identified by 'prince67';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> grant all priviledges on moodle.* to 'admin.sso'@'localhost';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that correspo nds to your MariaDB server version for the right syntax to use near 'priviledges on mood le.* to 'admin.sso'@'localhost'' at line 1
MariaDB [(none)]> grant all priviledges on moodle.* to 'admin.sso'
 -> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'priviledges on moodle.* to 'admin.sso'' at line 1
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)



Step-3 Make Directory on /var/www/moodledata


					
Advertisements