Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2009-08-25 18:05:53

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

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

#38 2009-08-25 18:08:49

artagesw
Member
From: Seattle, WA
Registered: 2007-04-29
Posts: 227
Website

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

#39 2009-08-29 19:27:15

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#40 2009-08-29 19:44:35

artagesw
Member
From: Seattle, WA
Registered: 2007-04-29
Posts: 227
Website

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, 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?

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

#41 2009-08-29 20:29:07

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#42 2009-08-29 20:48:10

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#43 2009-08-29 21:48:49

artagesw
Member
From: Seattle, WA
Registered: 2007-04-29
Posts: 227
Website

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

#44 2009-09-06 22:44:51

artagesw
Member
From: Seattle, WA
Registered: 2007-04-29
Posts: 227
Website

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

Board footer

Powered by FluxBB