Root Path: Shared Hosting (Hosteurope)

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
dpi72
Posts: 5
Joined: Mon 22. Mar 2004, 00:40

Root Path: Shared Hosting (Hosteurope)

Post by dpi72 »

I have some trouble getting the right root path for my installation on a multi-domain hosting webspace (provider: hosteurope). I've installed WCMS in the folder "phpwcms" on a domain "seconddomain" which is an alias-domain pointing to a subfolder on my first domain "firstdomain", e.g. "/domains/seconddomain".

So the problem is: $_SERVER["DOCUMENT_ROOT"] on my seconddomain gives back "/blabla/.../firstdomain" without "/domains/seconddomain".

So at the moment I can login via "http://www.seconddomain.de/phpwcms" using "phpwcms" for $phpwcms["root"] in my conf.inc.php, but get path errors when trying to edit my articles for example.

On the other hand, the path errors when editing disappear when I upload an updated conf.inc.php with "domains/seconddomain/phpwcms" as $phpwcms["root"], but with this configuration I cannot login anymore.

The problem obviously lies in handling the paths to my seconddomain - can anyone help me??

I use "http://www.seconddomain.de/" as $phpwcms["site"] - that's not the problem.

Installed version: RC2_2004-02-20
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post by Jan212 »

Point your 2nd Domain to the folder of it via confixx. (2nd domain folder) and set up the paths like
"phpwcms" for $phpwcms["root"]
"http://www.seconddomain.de/" as $phpwcms["site"]
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
dpi72
Posts: 5
Joined: Mon 22. Mar 2004, 00:40

Post by dpi72 »

Point your 2nd Domain to the folder of it via confixx.
Does that mean I have to ask my provider? All I have is a standard web pack ...
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post by Jan212 »

No, at hosteurope confixx is the basic admin software...
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
dpi72
Posts: 5
Joined: Mon 22. Mar 2004, 00:40

Post by dpi72 »

I've already pointed my second domain to the subfolder via the "KIS" configuration interface - where can I find Confixx?
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post by Jan212 »

KIS is ok - forget CONFIXX.

Now place the phpwcms folder in the folder you pointed the domain to.

Set up

Code: Select all

// site values
$phpwcms["site"]              = "http://www.URL_of_the_2nd_Domain.de/";
...

$phpwcms["root"]              = "phpwcms";
Now everything should work.
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
dpi72
Posts: 5
Joined: Mon 22. Mar 2004, 00:40

Post by dpi72 »

No, that's the way I had it before when it didn't work. I solved the problem by adding

Code: Select all

$_SERVER['DOCUMENT_ROOT'] = '/is/htdocs/12345/www.firstdomain.de/domains/seconddomain';
to my conf.inc.php. ("12345" has to be replaced with Hosteurope customer ID).

Hope this will help other Hosteuropers.
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post by Jan212 »

ok. i think i didn't work because of
So the problem is: $_SERVER["DOCUMENT_ROOT"] on my seconddomain gives back "/blabla/.../firstdomain" without "/domains/seconddomain".
:wink:

hauptsache funzt...
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
Post Reply