DOCUMENT ROOT in Config / Setup - Poss Error and Solution
Posted: Sun 17. Jul 2005, 17:51
I think there is an error in the Config Script and the associated setup script. This may explain why a number of people have trouble with configuration. Let me explain the problem I was having and the solution. Even if this is only relevant to some hosted servers this will hopefuly make it easier for some to end up with a working configuration somewhat quicker.
I have spent much of the last 24 hours trying to set up DEV 123 on a new server my hosting company has just launched and at every step there seems to have been a problem not all the fault of phpwcms! All the more frustrating since I have already have 2 instances phpwcms working on my other hosted platform for some time. See recents posts for myself for some of the background - error messages and the like.
Anyway, the problem seemed to all boil down to the DOCUMENT_ROOT not being set correctly. All along I have been putting in the correct info but the error messages all indicated that the root was wrong. The reason turns out to be that the directives in the config file are in the wrong order.
It turns out that the following line is in the wrong place:
It shoud be placed near the top and specifically before the phpwcms document root is set using
This mod, has resolved all my current issues in 3 separate instances on two different servers.
Hope this helps someone else. If others who understand phpwcms agree with my analysis could I please ask that they promote this to a BUG and get a solution into the DEV version as soon as possible.
Thanks to all especially OG for a great product ( although for a few hours yesterday I was begining to think my enthusiasm may have been misplaced!)
James
I have spent much of the last 24 hours trying to set up DEV 123 on a new server my hosting company has just launched and at every step there seems to have been a problem not all the fault of phpwcms! All the more frustrating since I have already have 2 instances phpwcms working on my other hosted platform for some time. See recents posts for myself for some of the background - error messages and the like.
Anyway, the problem seemed to all boil down to the DOCUMENT_ROOT not being set correctly. All along I have been putting in the correct info but the error messages all indicated that the root was wrong. The reason turns out to be that the directives in the config file are in the wrong order.
It turns out that the following line is in the wrong place:
Code: Select all
$_SERVER['DOCUMENT_ROOT'] = '/files/home1/hp225tj';
Code: Select all
$phpwcms['DOC_ROOT'] = $_SERVER['DOCUMENT_ROOT'];
This mod, has resolved all my current issues in 3 separate instances on two different servers.
Hope this helps someone else. If others who understand phpwcms agree with my analysis could I please ask that they promote this to a BUG and get a solution into the DEV version as soon as possible.
Thanks to all especially OG for a great product ( although for a few hours yesterday I was begining to think my enthusiasm may have been misplaced!)
James