We try a simply approach updating config.php with this: <?php $DOMAIN = '-'.strtok($_SERVER['HTTP_HOST'],'.'); //Get subdomain $INSTANCE=substr(md5($DOMAIN),0,13); //Generate instance id for every subdomain
//Check if already exists the instance or not $INSTALLED = false; $FILE = '/var/owncloud/data/'.$DOMAIN.'owncloud.db'; if ((file_exists($FILE)) && (filesize($FILE)!=0)) $INSTALLED = true; $CONFIG = array ( 'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'datadirectory' => '/var/owncloud/data'.$DOMAIN, 'dbtype' => 'sqlite3', 'version' => '5.0.15', 'installed' => $INSTALLED, 'instanceid' => $INSTANCE, 'maintenance' => false, 'theme' => '', 'loglevel' => '0', 'forcessl' => true, ); And works, but config.php is regenerated by the install process and override the config file, so all the idea goes down. Could be great have a mecanism to do something like that. Regards from Canary Islands -- View this message in context: http://owncloud.10557.n7.nabble.com/Multiple-Instances-on-one-server-tp7644p10316.html Sent from the ownCloud mailing list archive at Nabble.com. _______________________________________________ Owncloud mailing list [email protected] https://mail.kde.org/mailman/listinfo/owncloud
