Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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
Moderator
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
Moderator
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
Moderator
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
Moderator
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

#31 2009-09-14 21:47:51

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

Re: Sites outside main TXP directory (multisite install)

Glad you got it working and thanks for posting the tip. One suggestion… Your tip gives the impression that you need to download Textpattern for every domain you install or upgrade (the “wget/tar” step). This is not the case. You only need to run that step the first time you install (or upgrade to) a given version of Textpattern.

Following the steps in your tip, you are going to end up with an extra (unused) copy of Textpattern in every domain directory.

Offline

#32 2009-09-15 07:14:50

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

Re: Sites outside main TXP directory (multisite install)

Ok I think I just downloaded it again without thinking too much. I also wanted to check how it worked, because when I first installed it in the main domain I had some issues.

I have edited the Tip – please check and if any changes required post a comment or let me know here. Thanks again!

Offline

#33 2009-09-15 20:04:06

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

Re: Sites outside main TXP directory (multisite install)

Sam – another question. I have updated all the sites on Joyent successfully with the exception of my home site.

In that sub-domain I have extra installs for the two templates I created:

/users/home/me/domains/jonathanstubbs.com/web/public/textpattern
/users/home/me/domains/jonathanstubbs.com/web/public/txp-minima/textpattern
/users/home/me/domains/jonathanstubbs.com/web/public/txp-minima-photoblog/textpattern

What’s the best way of handling this?

Offline

#34 2009-09-15 20:27:17

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

Re: Sites outside main TXP directory (multisite install)

Why are these separate installs instead of txp sections?

Offline

#35 2009-09-15 20:30:21

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

Re: Sites outside main TXP directory (multisite install)

I made it that way some time ago – the installs are for two TXP templates I made. Links below. Might be a way to put them in sections but I haven’t figured out how to yet ;-)

Last edited by jstubbs (2009-09-15 20:30:52)

Offline

#36 2009-09-15 20:47:32

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

Re: Sites outside main TXP directory (multisite install)

I suggest putting them into sections. Each section can have its own page template. Multi-site is not designed to support nested installations like this.

Offline

Board footer

Powered by FluxBB