Grepping through the code, it appears instanceid is used:

1. to generate the salt for password encryption
2. as the name for the session, which presumably influences session cookie 
values

What did I miss?

If so, it seems that for my use cases below, the answer should be: use a 
different instanceid if there’s no trust between the two installations, 
meaning: passwords and sessions must be forgotten.

Would appreciate a Sounds Right or a Sounds Wrong from somebody in the know.

Thanks,



Johannes.


> On Apr 27, 2016, at 12:01, Johannes Ernst <[email protected]> wrote:
> 
> In config.php, there’s instanceid. What exactly is this for, and how unique 
> does it need to be?
> 
> Example:
> 1. I move to a different server. Can I use the same instanceid on the new 
> server?
> 2. I restore an owncloud backup to a new installation temporarily. Can I use 
> the same instanceid for both? On the same server (with different virtual 
> hostname and/or context)
> 3. I upgrade owncloud. To make sure the upgrade went smoothly, I run both old 
> and new versions side by side for some time (different virtual hostname 
> and/or context, and copied dbs and data dir)
> 4. I get divorced (just kidding, it’s an example!). Both get a full copy of 
> the home owncloud. Do they need different instanceids? What if they chose the 
> same hosting provider?
> 
> If I do need to change it, how do I generate a new one?
> 
> Thanks,
> 
> 
> 
> Johannes.
> 

_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user

Reply via email to