在Windows中迁移moodle站点

时间:2017-12-17 20:30:24

标签: windows migration moodle

向大家致以季节性的问候,

我是moodle的新手,并在本地Windows 7计算机上创建了一个moodle站点(版本3.3.2)。作为我在uni的最终项目的一部分,我现在必须向30名学生演示该网站。如何将站点从Windows计算机迁移到学生可以访问的虚拟Windows机器上?

Moodles自己的网站似乎只是为Linux机器提供服务所以它没有多大帮助

1 个答案:

答案 0 :(得分:0)

虽然命令行示例可能是特定于Linux的,但https://docs.moodle.org/34/en/Moodle_migration上的步骤与您的操作系统相关

1.1 Turn on maintenance mode *(front end UI)*
1.2 Backup the Moodle database on the old sever *(can be done in phpmyadmin or mysqlworkbench or whatever other relevant database management software you use and depending on the database you are using)*
1.3 Restore the database backup to the new server *(as above)*
1.4 Copy moodledata from the old server to the new server *(while rsync is a useful tool, this can be done with any copy/paste tool or ftp etc - just be prepared to take time if you are copying between servers or via an external medium)*
1.5 Copy the Moodle code from the old server to the new server *(as above - copy/ftp or just reinstall the code and then copy your config.php)*
1.6 Update config.php with the URL of the new server 
1.7 Test the copied site
1.8 Update links containing wwwroot in the database *(you may want to do this as part of the migration above - using a search and replace on the text of the export before re-importing it)*
1.9 Take the site out of maintenance mode