Transfer to subdomain

Transfer to subdomain

by Grant Christman -
Number of replies: 4

I run Moodle 2.6.5 at pediatrichospitalist.org via a hosting commercial host, Site5. Because I transferred the site from another host, the current site was not created with their web app system, which has led to difficulties upgrading to newer Moodle versions.

I am trying to move the current site to a subdomain so as not to lose our work. Under the direction of their tech support, I created "old.pediatrichospitalist.org" and moved the site files in public_html into the subdomain folder.

As a result, the site would not load at the subdomain ("incorrect access" error). Tech support told me I needed to "update links from the backend" myself because they are "not familiar with your website requirements and scripts."

I would greatly appreciate any recommendations on how to move forward. Basically, I want to build  a new site from scratch with a recent version of Moodle, and back up the old site somewhere where it can still be accessed.

Thanks!

Grant

Average of ratings: -
In reply to Grant Christman

Re: Transfer to subdomain

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

You must understand that the vast majority of Moodle administrators here work on the Unix/Linux shell. We don't have an idea of your providers "app" system. Since their support team is involved, they can refer to our documentation do the equivalent in their system.

What you have is a https://docs.moodle.org/26/en/Moodle_migration, or rather a special case. Ask the IT people to compare this with what they have been doing. My guess is that they've overlooked "Change your URL" part in the config.php.
In reply to Visvanath Ratnaweera

Re: Transfer to subdomain

by Grant Christman -

Thanks for your reply and advice about the settings. A lot of non-programmers use Moodle (I am a pediatrician) and without institutional support, that often involves web apps for setup (I think in this case, it's Softaculous).

I can see why it would be hard for you or others on this forum to give direct advice in that case. I went back to the hosting company and they are trying to help, so hopefully it will work out.

In reply to Grant Christman

Re: Transfer to subdomain

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
To reiterate, what you want to do is to change the URL of a running system as http://example.com to http://sub.example.com, without moving any data (the two directories and the database)? Routine thing: basically editing the config.php file and running the replace tool https://docs.moodle.org/en/Moodle_migration#Update_links_containing_wwwroot_in_the_database. Pl. read the warnings in that tool, just in case.
In reply to Grant Christman

Re: Transfer to subdomain

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You'd be surprised how many threads here started with some variation on, "I used Softaculous and... insert some disaster here..." wink

You either find out a bit about server hosting to install Moodle or you'll find out "under distress" when it all goes wrong. I recommend the former.