Posted: Mon 7. Jun 2004, 23:37
i think he change the path!*ggfrold wrote:I can login now - what did you do?SNap wrote:yeah, i thought so, too. but try to login with default login at http://snap2k.dyndns.org:8050/
The phpwcms support forum will help to find answers to your questions. The small but strong community is here since more than 10 years.
https://forum.phpwcms.org/
i think he change the path!*ggfrold wrote:I can login now - what did you do?SNap wrote:yeah, i thought so, too. but try to login with default login at http://snap2k.dyndns.org:8050/
Yes I know... but I wanted him to post the top of his conf.inc.php ---- but I could have told you instead of just saying "what did you do?" LOLPappnase wrote:i think he change the path!*ggfrold wrote:I can login now - what did you do?SNap wrote:yeah, i thought so, too. but try to login with default login at http://snap2k.dyndns.org:8050/
hellomburp wrote:I am new to phpwcms and am trying a test installation of 1.2.3 in a user account of my existing hosting account at http://test.padlas.org (or http://www.padlas.org/~test/) .
When I log in to the back-end I get the following error messages:
Warning: main(): Unable to access /home/virtual/siteXX/fst/var/www/html/phpwcms_template/inc_default/startup.php in /home/virtual/siteXX/fst/home/test/public_html/phpwcms.php on line 412
Warning: main(/home/virtual/siteXX/fst/var/www/html/phpwcms_template/inc_default/startup.php): failed to open stream: No such file or directory in /home/virtual/siteXX/fst/home/test/public_html/phpwcms.php on line 412
Warning: main(): Failed opening '/home/virtual/siteXX/fst/var/www/html/phpwcms_template/inc_default/startup.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/siteXX/fst/home/test/public_html/phpwcms.php on line 412
My settings in config/phpwcms/conf.inc.php are:
// site values
$phpwcms["site"] = "http://www.padlas.org/~test/";
$phpwcms["admin_email"] = "XXX@padlas.org";
// paths
$phpwcms["DOC_ROOT"] = $_SERVER['DOCUMENT_ROOT'];
$phpwcms["root"] = ""; //default: ""
And I have added the following at the end of the file:
$_SERVER['DOCUMENT_ROOT'] = '/home/virtual/siteXX/fst/home/test/public_html';
My phpwcms DOCUMENT_ROOT test gave the following:
1) your default $_SERVER['DOCUMENT_ROOT']: /home/virtual/siteXX/fst/var/www/html
2) real DOCUMENT_ROOT based on this file : /home/virtual/siteXX/fst/home/test/public_html
If anyone can explain what else I can do to keep phpwcms.php line 412 from reaching into my main directory for a file that is in the 'test' user directory, I'd really appreciate it.
Michael Burp
mburp
Permissions are as you require. Could permissions cause the phpwcms installation to attempt to call files from my main site's directory rather than from the 'user' directory phpwcms is installed in - and to which the configuration file directs it?
Code: Select all
$_SERVER['DOCUMENT_ROOT']
Code: Select all
$phpwcms["DOC_ROOT"]
Code: Select all
$_SERVER['DOCUMENT_ROOT']
Code: Select all
$phpwcms["DOC_ROOT"] = '/home/virtual/siteXX/fst/home/test/public_html';