Step # 1: Install Apache
yum install httpd.
Step # 2: Install php
yum install php
Step # 3: Install mysql
yum install mysql
Step 1 to 3
yum -y install php-common php-cli php-pear screen apr apr-util httpd-tools httpd mysqlperl-DBD-MySQL mysql-server php php-pdo php-mysql libXpm php-gd php-xml php-mbstring php-xmlrpc php-intl php-soap
Step # 4: Download latest tar file from moodle website and extract to /var/www/html/moodle
Step # 5.
Create empty database in MySQL
#mysql -u root -p yourpasswordhere
At the mysql prompt:
mysql>CREATE DATABASE mydbname CHARSET 'utf8';
mysql>GRANT select,insert,update,delete,create,drop,index,alter ON mydbname.* TO mymoodleuser@localhost IDENTIFIED BY 'moodleuserpassword';
mysql>flush privileges;
mysql>quit;
Example
#mysql -u root -p R@@T123
At the mysql prompt:
mysql>CREATE DATABASE moodle CHARSET 'utf8';
mysql>GRANT select,insert,update,delete,create,drop,index,alter ON moodle.* TO admin@localhost IDENTIFIED BY 'M@@D123';
mysql>flush privileges;
mysql>quit;
Step # 6.
Create Moodle directory in /var/www/html/moodle and EXTRACT the TAR/ZIP file in moodle directory
mkdir /var/www/htmlmoodle
cd /var/www/html/moodle
chown - R apache:apache *
chmod -R 744 *
Step # 7.
Create MoodleData Folder for saving moodle data
mkdir /var/www/moodledata
cd /var/www/moodledata
chown - R apache:apache *
chmod -R 744 *
Note: Check here for security recommendations:
Step # 8.
Moodle! Installation
Moodle! Installation
start the httpd,mysql services
Open up a web browser on the server and hit: http://localhost/moodle or http://youripaddress/moodle
Install and configure as desired.
Install and configure as desired.
No comments:
Post a Comment