- 安装数据库,参见380小节,MariaDB安装
- 安装httpd:yum -y install install apache2
- 安装php72:
- yum -y install epel-release
- yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
- yum -y install epel-release
- yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
- yum -y install --enablerepo=remi install php72-php php72-php-fpm php72-php-bcmath php72-php-ctype php72-php-curl php72-php-dom php72-php-gd php72-php-hash php72-php-iconv php72-php-intl php72-php-mbstring php72-php-pdo_mysql php72-php-simplexml php72-php-soap php72-php-xsl php72-php-zip php72-php-xml php72-php-sockets php72-php-session php72-php-snmp php72-php-mysql php72-php-cli php72-php-json php72-php-mcrypt php72-php-mysqlnd php72-php-pecl-crypto php72-php-pecl-mcrypt php72-php-pecl-geoip php72-php-recode php72-php-xmll
- 安装moodle,注意版本,
https://download.moodle.org/download.php/stable310/moodle-3.10.11.tgz
在官网上各个版本对应的php版本不一样,用错了会出问题。解压后放到/var/www/html目录下,并执行:mkdir /var/www/moodledata;chmod 777 /var/www/moodledata