Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-03-03 14:20:55

ToK
Plugin Author
Registered: 2014-02-18
Posts: 23

[solved] Wrong path in multi-site installation

This problem affects “Multi-Site with Integrated Admin Area” only.

In file <txp-root>/textpattern/sites/site1/public/admin/index.php the site configuration is to be loaded via

@include '../private/config.php';

which means <txp-root>/textpattern/sites/site1/public/private/config.php. But this location is invalid — the actual path of the required file is <txp-root>/textpattern/sites/site1/private/config.php! So the path specification in index.php line needs one more level upwards:

@include '../../private/config.php';

Last edited by Gocom (2014-03-30 09:15:20)

Offline

#2 2014-03-05 10:54:43

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: [solved] Wrong path in multi-site installation

Hello.

This is not correct. The standard layout is:

site
  -> admin
  -> private
  -> public

“site/public/admin/” is a symbolic link to “site/admin/”. So “../private/config.php” is a correct reference.

At least it works for me :-)

Last edited by juanjonavarro (2014-03-05 10:55:40)

Offline

#3 2014-03-05 11:28:28

ToK
Plugin Author
Registered: 2014-02-18
Posts: 23

Re: [solved] Wrong path in multi-site installation

“site/public/admin/” is a symbolic link to “site/admin/”.

Not here unfortunately — I tested with pwd and readlink -f. I just downloaded the current textpattern file and unzipped it, nothing else …

Offline

#4 2014-03-05 11:39:47

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: [solved] Wrong path in multi-site installation

If you go to the official svn repository:

https://code.google.com/p/textpattern/source/browse#svn%2Freleases%2F4.5.5%2Fsource%2Fsites%2Fsite1%2Fpublic

And click on “admin” you can see is a link to “../admin”

Maybe is a problem with the zip format. If you download the tar.gz file, you can see it is a link. Actually there are a lot of links:

public/setup -> ../admin/setup
public/theme -> ../../../textpattern/theme
public/admin -> ../admin
admin/jquery.js -> ../../../textpattern/jquery.js

And a lot more in admin directory.

Last edited by juanjonavarro (2014-03-05 11:40:14)

Offline

#5 2014-03-05 12:27:52

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [solved] Wrong path in multi-site installation

ToK wrote #279468:

Not here unfortunately — I tested with pwd and readlink -f. I just downloaded the current textpattern file and unzipped it, nothing else …

The ZIP download doesn’t ship with symbolic links due to ZIP implementations and their inability to support links. Starting from next patch release, the ZIP package will not come with the multi-site directory. So, instead download the TAR (a format that does support links) that has the proper links.

Offline

#6 2014-03-05 12:37:02

ToK
Plugin Author
Registered: 2014-02-18
Posts: 23

Re: [solved] Wrong path in multi-site installation

Yes — you’re right: only the tar.gz file contains symbolic links. In the zip file there are full directories instead.

So how to deal with it? Remove admin/ from inside public/ and create the symbolic link manually?

Should textpattern-4.5.5/sites/README.txt not warn about using the zip file for multisite installation? Or did I overlook that ?

Offline

#7 2014-03-05 12:39:55

ToK
Plugin Author
Registered: 2014-02-18
Posts: 23

Re: [solved] Wrong path in multi-site installation

Ah, OK. Thank you Gocom for your that hint.

Offline

Board footer

Powered by FluxBB