Sharing in case it is useful to anyone else...
http://cvs.moodle.org/contrib/tools/makemoodle/
This is a bash shell script that creates a moodle instance on a shared server. It does the whole thing, creates the user, the folders, sets permissions, sets up the database and the cron. All you then have to do is to run the install script in Moodle and it's job done.
It's possibly a bit specific, but it may be a start for somebody
Hi Howard,
It might be useful to have a look at integrating that with the CLI installer (that sets up the database schema, site course and admin user as well) that was a GSOC project from last year (it's in HEAD not 1.9 though)
It can either run interactively (prompting for answers) or from a set of -- parameters passed to it.
hth
edit: lives in admin/cliupgrade.php
It might be useful to have a look at integrating that with the CLI installer (that sets up the database schema, site course and admin user as well) that was a GSOC project from last year (it's in HEAD not 1.9 though)
It can either run interactively (prompting for answers) or from a set of -- parameters passed to it.
hth
edit: lives in admin/cliupgrade.php
Hi Penny,
I didn't know about that, I was thinking how difficult that would to do. Not very if somebody else has done it
I had a vague notion to recode the script I just posted in PHP to give a Moodle "Control Panel", so that a host "manager" can create Moodle instances at the press of a button.
I didn't know about that, I was thinking how difficult that would to do. Not very if somebody else has done it
I had a vague notion to recode the script I just posted in PHP to give a Moodle "Control Panel", so that a host "manager" can create Moodle instances at the press of a button.