Page 2 of 2

Posted: Mon 7. Jun 2004, 23:37
by Pappnase
frold wrote:
SNap wrote:yeah, i thought so, too. but try to login with default login at http://snap2k.dyndns.org:8050/
I can login now :D - what did you do?
i think he change the path!*gg

Posted: Mon 7. Jun 2004, 23:39
by frold
Pappnase wrote:
frold wrote:
SNap wrote:yeah, i thought so, too. but try to login with default login at http://snap2k.dyndns.org:8050/
I can login now :D - what did you do?
i think he change the path!*gg
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?" LOL

Posted: Tue 8. Jun 2004, 00:06
by SNap
sure i did, but i also did this as frold couldn't get in ;)

Novice troubles with setup paths

Posted: Wed 20. Apr 2005, 23:39
by webcity
Hi guys,
I'm having trouble installing, I get red errors during setup for the paths.

I've tried the suggested solutions, using document_root.php to find out the real paths and still no progress. I'm a bit new to this so i apologise if i've missed the blatantly obvious.

system: Linux server8.web-mania.com 2.4.20-27.7smp #1 SMP Thu Dec 11 14:50:55 EST 2003 i686
server: Apache/1.3.27 (Unix) PHP/4.3.10 mod_perl/1.26 FrontPage/5.0.2.2510
php: v4.3.10
path: /var/httpd/htdocs/phpwcms

filestorage: phpwcms_filestorage FALSE (not existing)
temporary: phpwcms_tmp FALSE (not existing)
templates: phpwcms_template FALSE (not existing)
thumbnail list: thumb_list FALSE (not existing)
preview images: thumb_preview FALSE (not existing)
frontend content: content FALSE (not existing)
frontend images: images FALSE (not existing)
ftp takeover: phpwcms_ftp FALSE (not existing)

From document_root.php placed outside my phpwcms folder, in the root of my web account. I get:

1) your default $_SERVER['DOCUMENT_ROOT']: /var/httpd/htdocs
2) real DOCUMENT_ROOT based on this file : /home/www/hosts/www.ernst-travois.org.uk

If (1) and (2) not equal then add following
line at the end of your conf.inc.php but before ending "?>":

$_SERVER['DOCUMENT_ROOT'] = '/home/www/hosts/www.ernst-travois.org.uk';

Check if this is corresponding with the subdir
in which phpwcms is installed:

$phpwcms['root'] = "home/www/hosts/www.ernst-travois.org.uk";

PS. I've installed two CMSs on the server already but want to go with phpwcms, do I need to remove the others, and remove them from the SQL database or soemthing?

Thanks for any help.

Sorry, path again

Posted: Thu 2. Jun 2005, 00:13
by mburp
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

Re: Sorry, path again

Posted: Thu 2. Jun 2005, 04:10
by Pappnase
mburp 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
hello

check your permissions!

http://www.phpwcms-docu.de/index.php?dev_1_x_en

Re: Sorry, path again

Posted: Thu 2. Jun 2005, 06:12
by mburp
Pappnase wrote:
hello

check your permissions!

http://www.phpwcms-docu.de/index.php?dev_1_x_en
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?

Thank you for your help in this matter,

Michael

Posted: Thu 2. Jun 2005, 06:25
by Oliver Georgi
Adding

Code: Select all

$_SERVER['DOCUMENT_ROOT']
at the end of conf.inc.php does not work in releases after 1.1.9 anymore. The var

Code: Select all

$phpwcms["DOC_ROOT"]
does the job now. So if you need to use a custom

Code: Select all

$_SERVER['DOCUMENT_ROOT']
setting do it this way:

Code: Select all

$phpwcms["DOC_ROOT"] = '/home/virtual/siteXX/fst/home/test/public_html';
Oliver

Posted: Thu 2. Jun 2005, 06:51
by mburp
Many thanks, Oliver, this seems to get me past the 'path' part of the problem. I'm now getting the following:

Warning: main(home/virtual/siteXX/fst/home/test/public_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/home/test/public_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

Which at least shows its now looking in the right directory. I'll have another search through the forum.

Michael

path problems or?

Posted: Fri 16. Dec 2005, 17:30
by carstenlegaard
I may have some path problems, too.
Must all of the path-informations, you propose, be added to the conf.inc.php?
Is there any other traps?
Do I have to have a html-page on the server before I can get in touch with the phpwcms-directory on the server??
I am quite new to php, so please be precise.