Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2014-03-03 14:20:55
- ToK
- Plugin Author
- Registered: 2014-02-18
- Posts: 25
[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
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: 25
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
Re: [solved] Wrong path in multi-site installation
If you go to the official svn repository:
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
Re: [solved] Wrong path in multi-site installation
ToK wrote #279468:
Not here unfortunately — I tested with
pwd
andreadlink -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: 25
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: 25
Re: [solved] Wrong path in multi-site installation
Ah, OK. Thank you Gocom for your that hint.
Offline