I had the opportunity to install the e-learning package Moodle, and I quickly ggged it.
How to set up Moodle on Amazon EC2
is a hit.
I thought that the content was too detailed, but when I set it up, it was filled with mines due to the Moodle version upgrade, so I created a mine clearance note.
Set up Amazon Linux AMI 64bi <-変わらず
phpとMySQLのインストール <- ココ!
上記リンク先の手順通りやると、以下のメッセージにぶちあたります。
Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version 5.3.29).<br />Please upgrade your server software or install older Moodle version.
I mean, Amazon Linux PHP is 5.3!
So, set up php5.5, MySQL with the following command
The point is around apache 2.4 and php55-mysqlnd.
sudo yum -y update;
yum install httpd24 mysql-server git php55 php55-gd php-pear php55-mbstring php55-mcrypt php-zts php55-xmlrpc php55-soap php55-intl php-zip php55-xml memcached php55-mysqlnd php55-pecl-apc php55-common
sudo chkconfig mysqld on
sudo chkconfig httpd on
sudo service mysqld restart
sudo service httpd restart
sudo mkdir /var/www/moodledata
sudo chown apache:apache /var/www/moodledata
3.DB creation <-変わらず
mysql -u root -p -e "CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; GRANT ALL ON moodle.* TO moodledbu@localhost IDENTIFIED BY 'てきとうなパスワードを設定'; ";
cd /var/www/html
4.Moodleダウンロード <-2.8を指定
sudo git clone git://git.moodle.org/moodle.git
cd moodle
sudo git checkout -t origin/MOODLE_28_STABLE
5.ブラウザからセットアップ <- 2.8を指定 流れに従う。
おそらくこの記事の賞味期限は2.9が公開されるまで、だと思われます。
良いMoodle2.8ライフを!