Migrating multi-domain configuration: различия между версиями
Материал из База знаний Центра ПУСК МФТИ
1>Marina.glancy Нет описания правки |
м 1 версия импортирована |
(нет различий)
|
Текущая версия от 06:40, 18 октября 2024
If you were using experimental multi-domain feature added in WP-3781 in Moodle Workplace 4.0-4.4, you need to change it to the new solution introduced in Moodle Workplace 4.5. If you have $CFG->tool_tenant_wwwroot defined in your config.php, it will no longer work as expected.
Perform the steps in this exact order:
1. Upgrade your site to Moodle Workplace 4.5
2. Run the CLI script:
php admin/tool/tenant/cli/migrate_tenant_domains.php
3. Remove all modifications from config.php that are described in WP-3781 - remove $CFG->tool_tenant_wwwroot and make sure that you only set $CFG->wwwroot once and do not modify it afterwards.
4. Add to config.php:
$CFG->allowmultipledomains = true;