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".
In reply to Dark Boost
Re: Windows Portable Moodle and Relative Paths for 'dataroot'
by Visvanath Ratnaweera -
May be not what you are looking for. If the portability is priority, you should look at the https://moodlebox.net.
In reply to Visvanath Ratnaweera
Re: Windows Portable Moodle and Relative Paths for 'dataroot'
by 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?
In reply to Dark Boost
Re: Windows Portable Moodle and Relative Paths for 'dataroot'
by Visvanath Ratnaweera -
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.