Hi, how about something like this in the config.php: $ocdata = $_SERVER['DOCUMENT_ROOT'] . '/data'; $CONFIG = array ( .. 'datadirectory' => $ocdata, .. );
This should set the data directory of OC to web server's docroot + /data. Bear in mind that the config.php might be changed on updates! On Sat, Jul 5, 2014 at 11:06 PM, Chris Green <[email protected]> wrote: > I see in my config.php file that the database has an absolute address, > probably often the same for anyone running owncloud on a typical Linux > box:- > > /home/www-data/www/owncloud/data > > Can this be changed to a relative address so that one could then copy > an owncloud installation to another server and it would still work? I > want to sort of mirror an owncloud server and this seems to be the > only thing that will prevent it working easily. > > ... I'm using a sqlite3 database so it's just a file within the > owncloud installation. I don't really want to have the extra hassle > of using mySql. > > -- > Chris Green > _______________________________________________ > User mailing list > [email protected] > http://mailman.owncloud.org/mailman/listinfo/user >
_______________________________________________ User mailing list [email protected] http://mailman.owncloud.org/mailman/listinfo/user
