Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2009-09-09 18:48:39

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: Sites outside main TXP directory (multisite install)

aesop1,

ssh scripts are not allowed.
I’m not allowed to build symlink. I don’t want to automate the process, I want to create – on such a host – multiple sites with one txp install.

Is it possible to install TXP in the root – as usuel – and use the same TXP files to run other sites in directories ?

I run a school site. The main site is in the root, and many groups or projects have their site, in directories.
Actually, I install TXP in each directory. I want to run one core files installation … Any idea ?

Last edited by jpdupont (2009-09-09 18:49:36)

Offline

#17 2009-09-09 19:05:59

aesop1
Archived Plugin Author
Registered: 2004-09-19
Posts: 142

Re: Sites outside main TXP directory (multisite install)

Jpdupont,

I think you might be out of luck at this time unless your host lets you run sites from within your TXP folder. If not, I think you would manually have to hack the site files to link to the core install. Unless some other developers have already tackled this, I think it would take a coding effort to accomplish this.

Possible to move to another host? Sometimes that is the easier solution!

-Matt

Offline

#18 2009-09-09 19:54:05

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

Re: Sites outside main TXP directory (multisite install)

Running multiple sites from a single install requires the ability to create symlinks, either via script or manually. The default distribution includes a sites directory with symlinks already created for the initial site. But unless your host allows you to point your document root into the sites directory, that won’t work for you either.

Offline

#19 2009-09-09 21:07:16

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: Sites outside main TXP directory (multisite install)

Ok, thanks for the explanation.

Offline

#20 2009-09-10 03:40:31

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Sites outside main TXP directory (multisite install)

Did anyone manage to get this working on cpanel reseller hosting?

I haven’t tried… but I asked 2 of my reseller admins and they said it was not possible using whm/cpanel without changing the configuration of the server :(

The first server is setup using SuPHP which will run php scripts under that user account so any file permissions have to be compatible with that.

The second reseller account stated:

Unfortunatley Cpanel does not support this and installing this would be server wide and could 
impact server performance and or conflict with Cpanel itself.

Offline

#21 2009-09-10 06:06:15

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Sites outside main TXP directory (multisite install)

The one that does is the one running SuPHP :( – The other doesn’t

What type of hosting would this setup run on best… I will be looking for a new server pretty soon and wouldn’t mind taking advantage of this?

Offline

#22 2009-09-10 06:09:54

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

Re: Sites outside main TXP directory (multisite install)

tye wrote:

The first server is setup using SuPHP which will run php scripts under that user account so any file permissions have to be compatible with that.

I don’t see why that would be an issue. Joyent servers are set up in a similar manner using mod_fcgid.

Offline

#23 2009-09-10 06:12:01

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Sites outside main TXP directory (multisite install)

artagesw wrote:

tye wrote:

The first server is setup using SuPHP which will run php scripts under that user account so any file permissions have to be compatible with that.

I don’t see why that would be an issue. Joyent servers are set up in a similar manner using mod_fcgid.

I don’t know enough about hosting to argue with them… but this was the full sentence

The reason I think it has to be under one user account is that SuPHP will run php scripts under that user account so any file permissions have to be compatible with that.

Offline

#24 2009-09-10 07:23:11

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

Re: Sites outside main TXP directory (multisite install)

Just saying that there is no incompatibility there. There is no reason you cannot run multiple sites under a single user account. That’s how people are running it on Joyent shared hosting.

Offline

#25 2009-09-10 08:29:36

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Sites outside main TXP directory (multisite install)

No worries artagesw – I’m not arguing with you either… just showing how little I knowledge I have of hosting :)

I’ll try it using addon domains… I was after using it in reseller hosting – I’ll keep trying to figure it out

Offline

#26 2009-09-13 19:19:28

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

Re: Sites outside main TXP directory (multisite install)

Running the script from a sub-domain on Joyent produces this in Terminal:

"Usage: txp_create_site.sh /path/to/textpattern [/path/to/site] [sitedir]"

Presumably I need to enter the path to the shared TXP install, which is in the main domain root?

Offline

#27 2009-09-13 19:31:15

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

Re: Sites outside main TXP directory (multisite install)

If for example I enter this from the /users/home/myusername/domains/txptips.com folder in Terminal: sh txp_create_site.sh /users/home/myusername/web/textpattern/textpattern I get these errors:

txp_create_site.sh[58]: pushd:  not found
txp_create_site.sh[60]: pushd:  not found
txp_create_site.sh[62]: pushd:  not found
txp_create_site.sh[77]: pushd:  not found
txp_create_site.sh[89]: popd:  not found
txp_create_site.sh[90]: popd:  not found
txp_create_site.sh[92]: pushd:  not found
txp_create_site.sh[144]: popd:  not found
txp_create_site.sh[146]: pushd:  not found
ln: cannot create ./admin: File exists
ln: cannot create ./setup: File exists
ln: cannot create ./theme: File exists
mkdir: Failed to make directory "tmp"; File exists
cp: cannot access /users/home/myusername/web/textpattern/textpattern/images
txp_create_site.sh[234]: popd:  not found
txp_create_site.sh[235]: popd:  not found
txp_create_site.sh[236]: popd:  not found

As noted, I have already installed TXP in the main domain i.e /users/home/myusername/web/...

What happens is that an empty /web folder is created, and all the other files are placed in the /txptips.com folder instead of /txptips.com/web/…

Guess I am missing something obvious with the paths…

Offline

#28 2009-09-14 07:10:50

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

Re: Sites outside main TXP directory (multisite install)

Wondering whether this should be the line entered into Terminal:

"Usage: txp_create_site.sh /users/home/myusername/web/textpattern/textpattern /users/home/myusername/domains/txptips.com web"

I am pretty sure I just used cd txp_create_site.sh in Terminal when installing Multi-sites in the root domain and all went well. Does the script need the extra parameters when setting it up for a secondary domain in the /domains/ folder?

Offline

#29 2009-09-14 18:15:56

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

Re: Sites outside main TXP directory (multisite install)

Per the instructions, you need to cd into the subdomain directory first:

cd ~/domains/txptips.com

Then execute the script giving it the location of your main install (top-level directory):

~/txp_create_site.sh ~/web/textpattern

Offline

#30 2009-09-14 20:31:53

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

Re: Sites outside main TXP directory (multisite install)

Sam, I really appreciate not only your help but also the script for making this process so much easier. I have written a TXP Tip on Multi-Sites setup.

Let me know if the instructions are clear and readable – and I hope it helps others to use this excellent feature.

Offline

Board footer

Powered by FluxBB