Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

restore with new URL

$
0
0
by Ken Task.  

You are doing what moodle docs call a migration.
https://docs.moodle.org/500/en/Moodle_migration

Is moodle.myschool.com on the same IP as moodle-test.myschool.com?
Your scripts reflect that.

If so, you are using virtual apaches.  And a virtual apache has to be configured for both sites.

https://httpd.apache.org/docs/current/vhosts/

Original site moodle.myschool.com using /var/www/html/ as code root. The cloned site moodle-test.myschool.com could be using /var/www/moodle-test/html as code root.

The config.php file at code root needs to be edited in moodle-test.myschool.com.

Moodle caches a lot ... when it comes to cloning moodledata the only directory that is absolutely needed is filedir.   The others are caches and will be rebuilt slowly as moodle-test.myschool.com is used.

Also the moodle-test.myschool.com main config.php file would need to be edited to reflect url to site, location of moodledata, and the DB array lines as well.

'SoS', Ken


Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>