Moodle Installation Guide and moodle Guide

Source: Internet
Author: User
Tags intl spl

Moodle Installation Guide and moodle Guide
Moodle Installation Guide

This document is used to guideUbuntu (Version Number: 16.04)To perform Moodle installation and basic configuration.

Reference
  • Moodle Document
  • Installing Moodle
  • Step by step installation guide for Ubuntu
  • How to install Moodle on Ubuntu 16.04
  • Install Moodle
Requirments installation requirements Hardware
  • Disk Space: MB (min) available space and as much storage space as possible for data storage. 5 GB is probably the actual minimum quota
  • Backup: the backup space (preferably in the network location) must be at least as large as the above disk space to store your backup data.
  • Memory: It must be at least 256 MB. We strongly recommend that you use a memory larger than 1 GB. The general empirical rules tell us that the use of 1 GB memory by Moodle can support 10 to 20 concurrent users, however, this will change based on the specific hardware, software combinations, and usage you use. "Concurrency" refers to the network server process in the memory at the same time (for example, the user's interaction with the system on the webpage within a few seconds ). Obviously, this is not the number of users who have logged on to the system.
Software OS

Ubuntu 16.04

Web Server network Server

Apache 2.0 or later

Database

Database development focuses on MySQL and PostgreSQL, both of which have passed comprehensive tests and are able to obtain rich documentation support. MSSQL is also fully supported (it is worth noting that the self-selected plug-in may not be tested on MSSQL), but the documentation and online help are not as comprehensive as MySQL or PostgreSql. Oracle cannot be fully supported, and it is not recommended.
-Mysql 5.5.31 or later
-MariaDB 5.5.31 or later
-PostgreSQL 9.3 or later
-Microsoft SQL Server 2008 or later
-Oracle Database 10.2 or later

PHP

The minimum version required by Moodle is 5.3.3. Several extensions must be enabled. For more information, see the PHP page. If any necessary extensions are missing, the installer will be paused during the Environment check.

We recommend that you install the following PHP extensions before installing Moodle:
-Ctype
-Curl
-Dom
-Fileinfo
-Gd
-Hash
-Iconv
-Intl
-Json
-Mbstring
-Openssl
-Pcre
-Simplexml
-Soap
-Spl
-Tokenizer
-Xml
-Xmlrpc
-Xmlreader
-Zip
-Zlib

# Install PHP extension apt install php7.0-ctype php7.0-curl php7.0-dom php7.0-fileinfo php7.0-gd php7.0-hash php7.0-iconv php7.0-intl php7.0-json php7.0-mbstring php7.0-openssl php7.0 -pcre php7.0-simplexml php7.0-soap php7.0-spl php7.0-tokenizer php7.0-xml php7.0-xmlrpc php7.0-xmlreader php7.0-zip php7.0-zlib-y
Browser

Moodle is compatible with any standards compliant web browser. We regularly test Moodle with the following browsers:

  • Chrome
  • Firefox
  • Safari 7 or below
  • Edge
  • Internet Explorer 10 or below
Install Moodle Files to get Files
  • Obtain the Moodle code file from Github. This step may take a long time depending on the network conditions.
# Switch to the Web server and obtain the source code file of moodle from github according to the directory cd/var/www/html. Git clone-B MOODLE_34_STABLE upload-R www-data/var/www/html/moodlechmod-R 777/var/www/html/moodle
  • Create a user data directory
Mkdir/var/moodledata # modify the directory owner chown-R www-data/var/moodledata # modify the directory permission, make sure that only the owner and the group have all permissions. chmod-R 770/var/moodledata

TIPS:It is created outside the root directory of the Web server because we do not want users to access these files through a browser.

DB Configuration database Configuration

We use the Mysql database as the data storage medium for Moodle. here we need to slightly modify the Mysql configuration.

Modify Mysql configurations

Edit the Mysql configuration file

vim /etc/mysql/mysql.conf.d/mysqld.cnf

FindMysqldFragment

[mysqld]user            = mysqlpid-file        = /var/run/mysqld/mysqld.pidsocket          = /var/run/mysqld/mysqld.sockport            = 3306basedir         = /usrdatadir         = /var/lib/mysqltmpdir          = /tmplc-messages-dir = /usr/share/mysqlskip-external-locking

Add the following three lines at the bottom

default_storage_engine = innodbinnodb_file_per_table = 1innodb_file_format = Barracuda

Save and restart the Mysql service.

service mysql restart
Create a moodle Database
# Create database moodle default character set utf8 COLLATE utf8_unicode_ci; # CREATE a separate DATABASE user for the moodle application and grant all privileges on moodle for the Operation permission of the specified DATABASE. * to moodle @ '%' identified by 'yourpassword'; flush privileges;
Configuration

After completing the above operations, we can access and configure Moodle in a browser. Open the browser and enterHttp: // [your_server_ip]/moodleTo install and configure Moodle.

Prompt: Replace [your_server_ip] With your actual Server IP address or the domain name configured for Moodle.

Step 1 language selection

The language selected here refers to the language used during installation, not the default language of the Moodle website.

Step 2 set the path

Configure the Web Service root directory and data storage directory created for Moodle on the server.

Step 3 select a database driver

We chose Mysql as the system database, so we should select the Mysql database driver here.

Step 4 connect to the database

Configure the connection information of the Mysql database. If the default port number of Mysql is not changed, do not enter it here.

Step 5 Copyright Notice

Click continue to go to the next step.

Step 6 check the server

Check whether the server configuration meets the Moodle installation requirements. If you seeYour server environment meets all minimum requirementsIndicates that the installation can continue.
If some PHP extensions are not installed, follow the prompts on the page to install them and restart the Apache service.

Step 7 module Installation

Moodel starts installation until Success is displayed at the bottom of the page, indicating that the installation is successful.

Step 8 configure the Administrator account

Create a system administrator account.

Step 9 configure the website

MiscellaneousSecurity improve

Open the Moodle configuration file

vim /var/www/html/moodle/config.php

Find 25th lines of code$ CFG-& gt; directorypermissions = 0777;And save the modification as follows.

$CFG->directorypermissions = 0770;

Remember to change the directory for Installation/Var/www/html/moodleAnd now you need to revoke the permission.

Chmod-R 755/var/www/html/moodle # modify the configuration file permission. the read-only owner has the maximum permission chmod 744/var/www/html/moodle/config. php
Copyright Disclaimer: This article is an original article by the blogger. For more information, see the source. Http://blog.csdn.net/chris_mao/article/details/79537689

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.