setup for paths

Please post all install related problems here. Visit this forum first for troubleshooting.
Pappnase

Post 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
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post 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
http://www.studmed.dk Portal for doctors and medical students in Denmark
SNap
Posts: 314
Joined: Wed 5. May 2004, 10:45
Location: Passau, Bavaria, Germany
Contact:

Post by SNap »

sure i did, but i also did this as frold couldn't get in ;)
'welcome to the real world!' datensysteme-lenk
webcity
Posts: 3
Joined: Wed 20. Apr 2005, 23:28

Novice troubles with setup paths

Post 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.
mburp
Posts: 5
Joined: Wed 1. Jun 2005, 23:50
Location: New Albany, IN, US
Contact:

Sorry, path again

Post 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
Menjünk kávézni!
Pappnase

Re: Sorry, path again

Post 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
mburp
Posts: 5
Joined: Wed 1. Jun 2005, 23:50
Location: New Albany, IN, US
Contact:

Re: Sorry, path again

Post 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
Menjünk kávézni!
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
mburp
Posts: 5
Joined: Wed 1. Jun 2005, 23:50
Location: New Albany, IN, US
Contact:

Post 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
Menjünk kávézni!
carstenlegaard
Posts: 12
Joined: Thu 15. Dec 2005, 11:05
Location: Hilleröd, Denmark

path problems or?

Post 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.
*When you pass it on
be sure you've made it
a better one*
Post Reply