一。 准备工作
1。下载Moodle2.0最新的Linux安装包
http://download.moodle.org/
2。下载CentOS 5.5
3。下载yum源安装包(见附件)升级到php5_3_4的yum源
二。安装
1。安装操作系统CentOS5.5
2。安装yum源:
#rpm -ivh epel-release-5-3.noarch.rpm
#rpm -ivh remi-release-5-7.el5.remi.noarch.rpm
3。升级PHP到PHP5.3.4和Mysql
yum --enablerepo=remi update php* mysql*
4. 创建Moodle 2.0的数据库:
#mysql -uroot -p
mysql> SHOW DATABASES;
mysql> CREATE DATABASE moodle;
mysql> ALTER DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,
-> DROP,INDEX,ALTER ON moodle.*
-> TO moodleuser@localhost IDENTIFIED BY 'yourpassword';
mysql> QUIT
5. 安装PHP扩展库:
#yum install --enablerepo=remi php-dom
#yum install --enablerepo=remi php-mbstring
#yum install --enablerepo=remi xmlrpc
#yum install --enablerepo=remi php-xmlrpc
#yum install --enablerepo=remi php-soap
#yum install --enablerepo=remi php-gd
#yum install --enablerepo=remi php-intl6。运行Moodle的安装脚本
http://192.168.0.9/moodle
安装完毕后,打开网页以上网页就可以正常访问Moodle