2012年6月7日 星期四

moodle 安裝

安裝 LAMP


安裝 moodle 需要的
# apt-get install php5-curl php5-xmlrpc php5-gd php5-intl


下載 moodle
# wget http://download.moodle.org/download.php/stable22/moodle-latest-22.tgz
# tar zxf moodle-latest-22.tgz
# mv moodle /var/www/
# chown -R www-data:www-data /var/www/moodle/


http://localhost/moodle/install.php
Parent directory (/var) is not writeable. Data directory (/var/moodledata) cannot be created by the installer.
# mkdir /var/moodledata
# chown www-data:www-data /var/moodledata


在 Database settings 之前
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 moodle@localhost IDENTIFIED BY 'yourpassword';
mysql> QUIT
  


Reference :
安裝Moodle - MoodleDocs

沒有留言:

張貼留言