Page 1 of 1

"frontend backend login document root" problem

Posted: Mon 18. Sep 2006, 09:11
by ruediger
Hi phorum, I have installed 1.2.8. on my local machine, everything works fine there… but if I put my site online and my $phpwcms["root"] I set like

$phpwcms["root"] = "";

my frontend is running, but i cannot login to the backend,getting the following error message:

Warning: main(/kunden/139821_01099/webseiten/cms/include/inc_lib/dbcon.inc.php): failed to open stream: No such file or directory in /kunden/139821_01099/webseiten/cms/moebler/login.php on line 31

Fatal error: main(): Failed opening required '/kunden/139821_01099/webseiten/cms/include/inc_lib/dbcon.inc.php' (include_path='.:/usr/local/lib/php') in /kunden/139821_01099/webseiten/cms/moebler/login.php on line 31

So if I change $phpwcms['root'] to:

$phpwcms['root'] = 'moebler';

now i am able to log in to the backend but my frontend gives me this:

Warning: main(/kunden/139821_01099/webseiten/cms/moebler/moebler/include/inc_lib/dbcon.inc.php): failed to open stream: No such file or directory in /kunden/139821_01099/webseiten/cms/moebler/index.php on line 57

Fatal error: main(): Failed opening required '/kunden/139821_01099/webseiten/cms/moebler/moebler/include/inc_lib/dbcon.inc.php' (include_path='.:/usr/local/lib/php') in /kunden/139821_01099/webseiten/cms/moebler/index.php on line 57

i have another site on the same server (in another folder) with phpwcms 1.2.5. DEV and $phpwcms["root"] = ""; //default: ""
there everthing works fine in both >ends<...


what can i do? thanks schonmal im voraus...

Posted: Mon 18. Sep 2006, 09:37
by flip-flop
Hi ruediger,

we need a little bit more information.
Where is the root of your domain? webseiten or cms?

Code: Select all

$phpwcms['site']              = 'http://'.$_SERVER['SERVER_NAME'].'/';
$phpwcms['admin_email']       = '';

// paths
$phpwcms['DOC_ROOT']          = $_SERVER['DOCUMENT_ROOT'];
$phpwcms['root']              = 'moebler';
Knut

Posted: Mon 18. Sep 2006, 10:25
by ruediger
hi flip-flop, in my domain-options, the path of my domain (foward) is set to

/webseiten/cms/moebler

and in the config file

// site values
$phpwcms['site'] = 'http://'.$_SERVER['SERVER_NAME'].'/';
$phpwcms['admin_email'] = '';
// paths
$phpwcms['DOC_ROOT'] = $_SERVER['DOCUMENT_ROOT'];
$phpwcms['root'] = '';

Posted: Mon 18. Sep 2006, 12:07
by flip-flop
Hi ruediger,

that must normaly work.
But if you have an special provider, please run the "document_root.php" in your new root and have a look.

Knut

Posted: Mon 18. Sep 2006, 12:31
by ruediger
now it works.. thanks