![]() ![]() ![]() ![]() How To Install Moodle 3. In Cent. OS 7. Introduction. I believe that most of us are already familiar with Moodle Online e- learning platform, many articles has been published several times on uixmen, reference links are provided below. Features. Moodle is a very popular online learning management platform which is used by educators, trainers, schools and colleges. It is highly customizable and easy to use utility with the help of which a user can create their own private website filled with multiple courses. As you all already know that Ubuntu 16.04 LTS is out there so today we will come to know how we can install & work.Highlights of some of its features are listed below. Customizable dashboard. Easy to use interface. All in one calendar. Multilingual support. Bulk course creating and management. Detailed reports and results generation capability. Installation. We will use updated version of moodle i. Cent. OS 7 platform. Minimum 2 GB RAM, Dual Core Processor and 5 GB storage capacity will be sufficient. LAMP Stalk is required for software installation. Update System# yum update - y. Installed required LAMP stalk on Cent. OS 7# yum install httpd mariadb mariadb- server php php- mysql. Start httpd and mysql services# systemctl enable httpd. For CentOS 6, PHP 5.3.3 is the latest version of PHP available through the official CentOS package repository. Keep in mind, even though PHP 5.3.3 was released July. Install Redmine on Centos 6.5 - 64 bit¶ Install Redmine on Centos 6.5 - 64 bit. The System Requirements; Update the System; Install the dependencies packages. In this article, I’ll go over the steps of how to install Nginx and PHP (PHP-FPM) working together on CentOS 6. To start I used clean version of CentOS 6. This tutorial shows how you can install an Apache2 webserver on a CentOS 7.0 server with PHP5 support (mod_php) and MySQL support. LAMP is short for Linux, Apache. This topic will concentrate on a basic installation of Icinga 1 Monitoring Tool from binaries on CentOS or RHEL 7, using RepoForge (previously known as RPMforge. PHP 7.0 is the latest stable release of PHP. May of popular yum repositories are providing rpm packages for PHP 7. This article is using webtatic yum repository and. Create root admin password of mysql# mysqladmin - u root password password. Create a database and a database user and assign all privileges to that newly created database user. Sample output# mysql - u root - p. Maria. DB [(none)]> create database moodle. PHP 5.5.34 has been released on PHP.net on 31st March 2016, and is also available for CentOS/RHEL 5.11, 6.7 and 7.2 at Webtatic via Yum. PHP 5.5 adds new features. Explains how to install Linux, Apache, MariaDB, PHP (LAMP) stack on a CentOS 7 and Red Hat Enterprise Linux (RHEL 7). Create MySQL database and user for Moodle. Here I create a database ‘moodledb’ and a user ‘moodleadmin’ with password ‘centos’: [root@server ~]# mysql -u. Maria. DB [(none)]> create user 'unixmen'@'localhost' identified by 'password'. Maria. DB [(none)]> grant all priviledges on moodle.* to 'unimxmen'@'localhost'. Maria. DB [(none)]> flush privileges. Maria. DB [(none)]> exit. ![]() Download latest version of Moodle and configure web services accordingly# cd /var/www/html. R apache: apache /var/www/html/moodle. R 7. 55 /var/www/html/moodle. Additionally, we have to create a data director for moodle under /var/www/ named as ‘moodledata’ which will be used by moodle, change permissions and ownership for that directory as required.# cd /var/www/. R 7. 55 /var/www/moodledata. R apache: apache /var/www/html/moodledata. Restart httpd services#systemctl restart httpd. Installation process is over at this stage, lets configure moodle server, open a browser type < ip_address> /moodle. Choose language and click next. Choose a database driver (default) and click next. Verify or modify directory path as required and click next. Provide required database name and database user credentials which were created in previous steps. Click on confirm and proceed for next step. System will check for all of the dependencies are fulfilled or not, if everything looks good then click to continue. If a long list of green appear at this step, simply continue. Congratulation! your configuration is done at this stage, provide required credentials. Login to server and try to create a course. Conclusion. Moodle 3. A lots of commercial enterprises are already using noodle for their recruitment exams or other ability tests. Install Moodle Learning Managment System on Cent. OS 6. Moodle is a Course Management System (CMS), also known as a Learning Management System (LMS) or a Virtual Learning Environment (VLE). It is a free web application that educators can use to create effective online/offline learning sites. In this article, let us learn to build a LMS site with Moodle on Cent. OS 6. x. Here x stands for version such as 6. My testbox hostname and IP address are server. Prerequisites. You should install and configure a LAMP server first. Moodle needs the following PHP extensions to run properly.[root@server ~]# yum install php- iconv php- mbstring php- curl php- openssl php- tokenizer php- xmlpc php- soap php- ctype php- zip php- gd php- simplexml php- spl php- pcre php- dom php- xml php- intl php- json php- ldap php- pecl- apc - y. PHP settings. Open up /etc/php. Off safe_mode = Off memory_limit = 1. M session. save_handler = files magic_quotes_gpc = Off magic_quotes_runtime = Off file_uploads = On session. Off post_max_size = 1. M upload_max_filesize = 1. MRestart your web server: [root@server ~]# service httpd restart. Create My. SQL database and user for Moodle. Here I create a database ‘moodledb’ and a user ‘moodleadmin’ with password ‘centos’: [root@server ~]# mysql - u root - p. Enter password: Welcome to the Maria. DB monitor. Commands end with ; or \g. Your Maria. DB connection id is 1. Server version: 5. Maria. DB Maria. DB Server. Copyright (c) 2. 00. Oracle, Monty Program Ab and others. Type 'help; ' or '\h' for help. Type '\c' to clear the current input statement. Maria. DB [(none)]> create database moodledb; Query OK, 1 row affected (0. Maria. DB [(none)]> GRANT ALL PRIVILEGES ON moodledb.* TO 'moodleadmin' IDENTIFIED BY 'centos'; Query OK, 0 rows affected (0. Maria. DB [(none)]> flush privileges; Query OK, 0 rows affected (0. Maria. DB [(none)]> exit. Bye. Install Moodle. Download the latest version from here. Or you can directly download from the terminal using the following command: [root@server ~]# wget http: //download. Extract the downloaded zip file: [root@server ~]# unzip moodle- latest- 2. This will create a new directory called moodle in your current directory. Copy all the contents of moodle to your website root document folder. If your server is dedicated to host only moodle site, copy the contents of your moodle directory to /var/www/html/ directory. In this case your moodle website URL will be www. If your server is shared server, copy the contents of moodle directory to /var/www/html/moodle/. In this case your moodle website URL will be www. Here I use a sub directory to host my moodle site. So the command should be: [root@server ~]# cp - fr moodle/ /var/www/html/moodle. Set the following permissions for root user to moodle directory: [root@server ~]# chown - R root /var/www/html/moodle/[root@server ~]# chmod - R 7. Create data directory for Moodle. Moodle requires a directory to store all of its files (all your site’s uploaded files, temporary data, session data etc.). The web server needs to be able to write to this directory. On larger systems consider how much free space you are going to use when allocating this directory. IMPORTANT: This directory must NOT be accessible directly via the web. This would be a serious security hole. Do not try to place it inside your web root or inside your Moodle program files directory. Moodle will not install. It can go anywhere else convenient.[root@server ~]# mkdir /var/www/moodledata/[root@server ~]# chmod 7. Begin Moodle installation. Open up your web browser and navigate to http: //ip- address/ if you copied the moodle directory contents to Apache document root folder or http: //ip- address/moodle if you copied the moodle directory contents to a sub directory of Apache root. Choose your desired language and press Next. Enter Moodle data directory path and press Next. Select the database driver. In my case it’s mysql. Press Next. Enter database name and database user details and press Next. You will be asked to save the settings. The installer will ask you to create a config. So let us create a config. Add the lines from the above output as shown below: < ? Moodle configuration file. CFG = new std. Class(). CFG- > dbtype = 'mysqli'. CFG- > dblibrary = 'native'. CFG- > dbhost = 'localhost'. CFG- > dbname = 'moodledb'. CFG- > dbuser = 'moodleadmin'. CFG- > dbpass = 'centos'. CFG- > prefix = 'mdl_'. CFG- > dboptions = array (. CFG- > wwwroot = 'http: //1. CFG- > dataroot = '/var/www/moodledata/'. CFG- > admin = 'admin'. CFG- > directorypermissions = 0. FILE__) . '/lib/setup. There is no php closing tag in this file. Now click Next. And click on Continue to accept the License Agreement. Now the installer will check for all necessary modules are installed. If everything seems OK, press Continue. The moodle installer will create all necessary modules. This will take a while. After it completes everything, click Continue. Create a Administrator account and click Update. Enter the Site name and click Save Changes button. Now your moodle site has been successfully installed. Setup cron for Moodle. It is very important to setup Cron. The Moodle ‘cron’ process is a PHP script that must be run regularly in the background. The Moodle cron script runs different tasks at differently scheduled intervals. The Moodle cron script runs tasks include sending mail, updating Moodle reports, RSS feeds, activity completions, posting forum messages and other tasks. Since different tasks have different schedules, not every task will run in Moodle when the cron script is triggered. Install crontab package if it is not installed already: [root@server ~]# yum install cronie. Now check which user is running the web server using the following command: [root@server ~]# grep - i user /etc/httpd/conf/httpd. This will display a result as shown below: # User/Group: The name (or #number) of the user/group to run httpd as.# . On SCO (ODT 3) use "User nouser" and "Group nogroup".# suggested workaround is to create a user www and use that user. User apache# User. Dir: The name of the directory that is appended onto a user's home# directory if a ~user request is received.# The path to the end user account 'public_html' directory must be# accessible to the webserver userid. This usually means that ~userid# must have permissions of 7. If. Module mod_userdir. User. Dir is disabled by default since it can confirm the presence # of a username on the system (depending on home directory User. Dir disabled # To enable requests to /~user/ to serve the user's public_html # directory, remove the "User. Dir disabled" line above, and uncomment #User. Dir public_html# Control access to User. Dir directories. The following is an example. Log. Format "%h %l %u %t \"%r\" %> s %b \"%{Referer}i\" \"%{User- Agent}i\"" combined. Log. Format "%{User- agent}i" agent#Log. Format "%h %l %u %t \"%r\" %> s %b \"%{Referer}i\" \"%{User- Agent}i\" %I %O" combinedio. From the above result, apache user is running the web server. So let us set the cron job for apache user: [root@server ~]# crontab - u apache - e. Add the followong line: */1. The above command will run cron job every 1. Make sure that you have replaced with your own moodle path. Save and exit the file. Go through the Moodle documentation page to know more about Moodle installation and administration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
September 2016
Categories |