授人以鱼
不如授人以渔

moodle 2.7 升级到 moodle 3.16

背景

Moodle 3.0以上版本才可以使用Moodle App,不然只能使用Moodle classic

升级过程

Upgrade Moodle following these steps:

Move your current Moodle files:

Only use sudo if the stack was installed as root.
Replace the installdir placeholder with the full installation directory for your Bitnami stack.
sudo mv installdir/apps/moodle/htdocs/ installdir/apps/moodle/htdocs.backup
Download the new Moodle version. An example is shown below (the XX placeholder in the command refers to the Moodle version number).

wget http://download.moodle.org/download.php/direct/stableXX/moodle-latest-XX.tgz
Create a new folder and uncompress the files:

Only use sudo if the stack was installed as root.
Replace the installdir placeholder with the full installation directory for your Bitnami stack.
sudo mkdir installdir/apps/moodle/htdocs/
sudo tar -xzvf moodle-latest-XX.tgz -C installdir/apps/moodle/htdocs/ --strip 1
Copy your previous configuration file and your modules or themes:

Only use sudo if the stack was installed as root.
Replace the installdir placeholder with the full installation directory for your Bitnami stack.
sudo cp -a installdir/apps/moodle/htdocs.backup/config.php installdir/apps/moodle/htdocs/
sudo cp -a installdir/apps/moodle/htdocs.backup/theme/MY_THEME nstalldir/apps/moodle/htdocs/theme/
sudo cp -a installdir/apps/moodle/htdocs.backup/mod/MY_MOD installdir/apps/moodle/htdocs/mod/
NOTE: Replace the MY_THEME and MY_MOD placeholders with the directory or path names for your downloaded and installed themes and modules (these are different from the ones shipped by Bitnami).
Configure file permissions as follows:

IMPORTANT: To change permissions file, in case you have installed the solution as root, use MYUSER:daemon as system user and group, respectively. Otherwise, simply use MYUSER:MYUSER.
Only use sudo if the stack was installed as root.
Replace the installdir placeholder with the full installation directory for your Bitnami stack.
sudo chown bitnami:daemon -R installdir/apps/moodle/htdocs/
sudo find installdir/apps/moodle/htdocs/ -type f -exec chmod 664 {} \;
sudo find installdir/apps/moodle/htdocs/ -type d -exec chmod 775 {} \;
Navigate to the application from a browser and follow the steps to upgrade the database to the latest version.

赞(0) 打赏
未经允许不得转载:5Beta.com » moodle 2.7 升级到 moodle 3.16

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏