Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Support multiple sites (r3189)
Thanks for the reply Gocom. The problem is that I am trying to move from a single site installation (4.0.8) to a multi-site version (4.2), so a simple upgrade wouldn’t work as it keeps everything in the same format… Or not?
Offline
Re: Support multiple sites (r3189)
The database schema is no different for multi-site. You can use sql dump as usual to copy/transfer your site.
Offline
Re: Support multiple sites (r3189)
I have a use-case scenario:
Let’s say I’m hosting at joyent. I have all kinds of virtual domains like this. /user/home/myAccount/domains/mydomain.com/web/public/
Now I currently store a bunch of shared stuff in: /user/home/myAccount/globals/
so I’m wondering whether I could just store a global Textpattern codebase there, say user/home/myAccount/globals/textpattern/
and point all my Textpatternish domains at that.
Would there be any performance hit/advantage from sharing the codebase like that? Any other concerns?
Offline
Re: Support multiple sites (r3189)
mrdale wrote:
I have a use-case scenario:
Let’s say I’m hosting at joyent. I have all kinds of virtual domains like this.
/user/home/myAccount/domains/mydomain.com/web/public/
Now I currently store a bunch of shared stuff in:
/user/home/myAccount/globals/
so I’m wondering whether I could just store a global Textpattern codebase there, sayuser/home/myAccount/globals/textpattern/
and point all my Textpatternish domains at that.Would there be any performance hit/advantage from sharing the codebase like that? Any other concerns?
I would expect no difference in terms of performance. The only exception would be if you were using a PHP accelerator. In that case, the accelerator would have fewer files to cache and therefore use less of your allocated RAM with a single shared code base.
Offline
Re: Support multiple sites (r3189)
Thanks mrSeatown
And each install would have their own environment, preferences, etc… because their databases are all separate. You just have to make sure that you run a vanilla install or all your sites are OK to be hacked in the same manner.
Offline
Re: Support multiple sites (r3189)
I’d be interested to hear how you set up multi site hosting on Joyent, am about to attempt this.
Offline
Re: Support multiple sites (r3189)
mrdale wrote:
Thanks mrSeatown
And each install would have their own environment, preferences, etc… because their databases are all separate.
Yep. Each site has its own database and config.php file. Only the core code is shared.
In theory, you could also set up a shared plugin cache directory if you want to share plugins across sites. But have not tried this yet myself.
Offline
Re: Support multiple sites (r3189)
jstubbs wrote:
I’d be interested to hear how you set up multi site hosting on Joyent, am about to attempt this.
See here.
Offline