Created
September 17, 2015 07:54
-
-
Save laddy/aef6d064a4662ebc73ac to your computer and use it in GitHub Desktop.
eラーニング構築ツールMoodleをUbuntuにインストールする ref: http://qiita.com/laddy/items/a174a5089cac8229dc16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get update | |
$ sudo apt-get upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install apache2 libapache2-mod-php5 | |
$ sudo apt-get install php5 php5-curl php5-gd php5-xmlrpc php5-intl php5-mysql | |
$ sudo apt-get install mysql-client mysql-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget https://download.moodle.org/download.php/direct/stable29/moodle-latest-29.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mysql -u root -p | |
create database moodle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tar zxf moodle-latest-29.tgz | |
$ sudo mv moodle /var/www/ | |
$ cd /var/www/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo vi /etc/apache2/sites-enabled/000-default.conf | |
DocumentRoot /var/www/moodle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo cp config-dist.php config.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Database 設定は適宜パスワードを設定してください | |
$CFG->dbtype = 'mysqli'; | |
$CFG->dbtype = 'mysqli'; | |
$CFG->dblibrary = 'native'; | |
$CFG->dbhost = 'localhost'; | |
$CFG->dbname = 'moodle'; | |
$CFG->dbuser = 'root'; // とりあえず | |
$CFG->dbpass = ''; | |
$CFG->prefix = 'mdl_'; | |
.... | |
$CFG->wwwroot = 'http://xxx.xxx.xxx.xxx'; | |
.... | |
$CFG->dataroot = '/var/www/moodledata'; | |
... | |
$CFG->lang = 'ja'; // for example 'cs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo mkdir moodledata | |
$ sudo chown -R www-data:www-data moodledata moodle | |
$ sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment