{"id":13195,"date":"2026-08-30T19:36:22","date_gmt":"2026-08-30T17:36:22","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=13195"},"modified":"2026-08-30T19:36:27","modified_gmt":"2026-08-30T17:36:27","slug":"cum-se-poate-muta-un-site-moodle-la-un-nou-furnizor-de-gazduire-fara-a-pierde-cursurile-sau-datele-utilizatorilor","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-move-a-moodle-site-to-a-new-hosting-provider-without-losing-courses-or-user-data\/","title":{"rendered":"Cum s\u0103 muta\u021bi un site Moodle la un nou furnizor de g\u0103zduire f\u0103r\u0103 a pierde cursurile sau datele utilizatorilor"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">A Moodle migration to a new hosting provider should move the application files, the <code>moodledata<\/code> directory, and the database as one planned process. A staged migration keeps the current site available while the new hosting environment is prepared and tested. Switch the domain only after the new Moodle copy is ready.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This sequence helps preserve course structures, enrolments, users, grades, file repositories, scheduled tasks, and Moodle-specific configuration while reducing the risk of data loss or extended downtime. <a href=\"https:\/\/mybox.com\/help\/ro\/baza-de-cunostinte\/cum-se-muta-un-site-web-typo3-la-un-nou-furnizor-de-gazduire-fara-intreruperi-de-functionare\/\">A staged migration is also the recommended approach for moving a website without downtime<\/a>.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-move-a-moodle-site-to-a-new-hosting-provider-without-losing-courses-or-user-data\/#What_must_be_moved\" >What must be moved<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-move-a-moodle-site-to-a-new-hosting-provider-without-losing-courses-or-user-data\/#Prepare_the_new_hosting_environment\" >Prepare the new hosting environment<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-move-a-moodle-site-to-a-new-hosting-provider-without-losing-courses-or-user-data\/#Update_Moodle_configuration_and_server_settings\" >Update Moodle configuration and server settings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-move-a-moodle-site-to-a-new-hosting-provider-without-losing-courses-or-user-data\/#Test_the_new_Moodle_site_before_switching_DNS\" >Test the new Moodle site before switching DNS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-move-a-moodle-site-to-a-new-hosting-provider-without-losing-courses-or-user-data\/#Switch_DNS_and_keep_a_rollback_plan\" >Switch DNS and keep a rollback plan<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-move-a-moodle-site-to-a-new-hosting-provider-without-losing-courses-or-user-data\/#When_the_Moodle_migration_is_complete\" >When the Moodle migration is complete<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_must_be_moved\"><\/span>What must be moved<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<\/div>\n\n<div id=\"mybox-2387089988\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">A Moodle site depends on more than its visible application files. The migration must include these three main parts:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Moodle application files:<\/strong> the files that run the Moodle site.<\/li>\n\n\n\n<li><strong><code>moodledata<\/code>:<\/strong> the directory used for Moodle file repositories and uploaded content.<\/li>\n\n\n\n<li><strong>The database:<\/strong> the data that contains courses, users, enrolments, grades, and other Moodle records.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Moodle-specific configuration must also be carried across. This includes the existing <code>config.php<\/code> settings and the configuration that supports scheduled tasks. Leaving out one of these parts can result in a site that loads but cannot show courses, user files, enrolments, grades, or scheduled activity correctly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Prepare_the_new_hosting_environment\"><\/span>Prepare the new hosting environment<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Review the current Moodle installation.<\/strong> Record the locations of the Moodle application files, the <code>moodledata<\/code> directory, the database, <code>config.php<\/code>, and the scheduled tasks used by the site.<\/li>\n\n\n\n<li><strong>Prepare the new hosting environment.<\/strong> Confirm that it can run the Moodle application and database used by the site. Plan the required PHP and database settings before transferring the site.<\/li>\n\n\n\n<li><strong>Create the new site without changing the live domain.<\/strong> Keep the current Moodle site available while the new copy is built. The new environment must be tested before traffic is sent to it.<\/li>\n\n\n\n<li><strong>Transfer the Moodle application files.<\/strong> Copy the application files to the new hosting environment while keeping their structure intact.<\/li>\n\n\n\n<li><strong>Transfer the <code>moodledata<\/code> directory.<\/strong> Copy the complete directory so that Moodle can continue to access course files and other stored content.<\/li>\n\n\n\n<li><strong>Transfer the database.<\/strong> Move the Moodle database to the new hosting environment. The database transfer is required to retain courses, users, enrolments, grades, and related Moodle data.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Update_Moodle_configuration_and_server_settings\"><\/span>Update Moodle configuration and server settings<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After the files and database are in place, update <code>config.php<\/code> for the new hosting environment. The configuration must refer to the new database connection, the new Moodle file location, and the new <code>moodledata<\/code> location where those values have changed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Apply the PHP and database settings required by the Moodle installation on the new host. These settings are part of the migration because the application files and database must work together in the new environment. Keep the existing Moodle-specific configuration consistent unless a change is required by the new hosting setup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Scheduled tasks must also be recreated or updated on the new host. Check that the tasks use the new Moodle file paths and the new hosting environment. A migration is not complete if the site opens but scheduled Moodle activity no longer runs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Test_the_new_Moodle_site_before_switching_DNS\"><\/span>Test the new Moodle site before switching DNS<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Test the new copy while the existing site remains available. Use a controlled test path for the new environment and verify the parts of Moodle that depend on both the database and <code>moodledata<\/code>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sign in with an administrator account.<\/li>\n\n\n\n<li>Authenticate with a standard user account.<\/li>\n\n\n\n<li>Open several courses and confirm that their structures are present.<\/li>\n\n\n\n<li>Check user enrolments and confirm that enrolled users can access the expected courses.<\/li>\n\n\n\n<li>Open course files and verify that file repositories load correctly.<\/li>\n\n\n\n<li>Review grades and confirm that existing grade data is available.<\/li>\n\n\n\n<li>Check that scheduled tasks are configured for the new environment.<\/li>\n\n\n\n<li>Confirm that the updated <code>config.php<\/code>, PHP settings, and database settings allow Moodle to operate normally.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Testing authentication and file access is especially important. A site can appear available while users still cannot sign in or Moodle cannot find stored course files. Resolve these issues before changing the domain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Switch_DNS_and_keep_a_rollback_plan\"><\/span>Switch DNS and keep a rollback plan<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Choose the cutover point.<\/strong> Switch only after the new Moodle site has passed the checks above.<\/li>\n\n\n\n<li><strong>Point the domain to the new hosting environment.<\/strong> Change the DNS settings required for the domain to reach the new Moodle site.<\/li>\n\n\n\n<li><strong>Keep the previous hosting environment available.<\/strong> It provides a rollback path while DNS changes take effect and the new site is observed.<\/li>\n\n\n\n<li><strong>Monitor the new site after the switch.<\/strong> Check administrator and user authentication, course access, enrolments, grades, file repositories, and scheduled tasks again.<\/li>\n\n\n\n<li><strong>Roll back if a critical problem appears.<\/strong> Point the domain back to the previous hosting environment while the issue is corrected on the new host. This is why the old site should remain available during the transition.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">DNS propagation typically takes a few hours, although it can take longer depending on the domain registrar and network conditions. During this period, some users may reach the old environment while others reach the new one. <a href=\"https:\/\/mybox.com\/help\/ro\/baza-de-cunostinte\/cum-sa-va-pregatiti-pentru-migrarea-unui-site-web-catre-un-nou-server\/\">Careful preparation before a server migration helps reduce the risk of downtime and data problems<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"When_the_Moodle_migration_is_complete\"><\/span>When the Moodle migration is complete<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Consider the migration complete only when the new environment serves the domain and the Moodle data is intact. Courses, users, enrolments, grades, course files, authentication, and scheduled tasks should all work from the new host. Moving a website to a new server does not usually harm search engine ranking when the move is handled correctly, but the Moodle checks and DNS transition still need to be completed carefully. <a href=\"https:\/\/mybox.com\/help\/ro\/baza-de-cunostinte\/mutarea-unui-site-web-pe-un-nou-server-va-afecta-clasamentul-acestuia-in-motoarele-de-cautare\/\">A server move does not usually negatively affect search engine ranking<\/a>.<\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[36],"manual_kb_tag":[],"class_list":["post-13195","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-migration"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/13195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/13195\/revisions"}],"predecessor-version":[{"id":13205,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/13195\/revisions\/13205"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=13195"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=13195"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=13195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}