Windows Portable Moodle and Relative Paths for 'dataroot'

Windows Portable Moodle and Relative Paths for 'dataroot'

napisao/la Dark Boost -
Broj odgovora: 3

I have been given the task of making a Windows Portable version of the latest Moodle (v3.6.4) using the Portable XAMPP and wondering if I can use Relative Paths for the $CFG -> dataroot - currently it is set to "c:\moodle\xampp\moodledata".

Odgovor na Dark Boost

Re: Windows Portable Moodle and Relative Paths for 'dataroot'

napisao/la Visvanath Ratnaweera -
Slika Particularly helpful Moodlers Slika Translators
May be not what you are looking for. If the portability is priority, you should look at the https://moodlebox.net.
Odgovor na Visvanath Ratnaweera

Re: Windows Portable Moodle and Relative Paths for 'dataroot'

napisao/la Dark Boost -

Thanks for the link but yeah not really what I am looking for.

I am in the process of writing a script which updates the absolute path with the users current directory before launching Moodle - I am just trying to figure out which files I need to updated and if there are any DB entries which need to be updated as well?

Odgovor na Dark Boost

Re: Windows Portable Moodle and Relative Paths for 'dataroot'

napisao/la Visvanath Ratnaweera -
Slika Particularly helpful Moodlers Slika Translators
If this is a fresh start the moodledata directory is empty. Just change the $CFG->dataroot to your wish and start Moodle. It will initiate moodledata. Only restriction, it has to be an absolute path.