Problem mit IIS 5.1

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
ralphk
Posts: 11
Joined: Fri 28. Nov 2003, 21:50

Problem mit IIS 5.1

Post by ralphk »

Der IIS kennt die Variable $_SERVER["DOCUMENT_ROOT"] nicht. Irgendeine Idee für einen workaround.

Ist es u.U. geplant im Code auf Webserver zu überprüfen und danach die Variable zu ersetzen?

Ciao, Ralph
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Re: Problem mit IIS 5.1

Post by DeXXus »

Der IIS knows the variable $_server["document_root "] not. Any idea for one workaround. Does it to be replaced have the variable possibly planned in the code on Web servers to be examined and afterwards? Ciao, Ralph
Might be setting of register_globals in php.ini ?

register_globals = off --> $_SERVER['DOCUMENT_ROOT']
register_globals = on --> $DOCUMENT_ROOT

-or-

wrong php.ini file found
(more than one(1) php.ini file being found in file paths)

Just guessing :wink:
ralphk
Posts: 11
Joined: Fri 28. Nov 2003, 21:50

Post by ralphk »

Ok, maybe I should continue in english...
Thanks for your help DeXXus, but it didn't work

My configuration:
Win XP Pro (IIS 5.1, PHP 4.3.4, mysql 4.0.16)

I have installed:

phpwcms_1.1-RC1_2003-11-18.zip
patch_20-11-2003.zip
patch_22-11-2003.zip


During the setup i got the following messages:

Code: Select all

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) 
The whole phpwcms subirectory has full acces for everybody and no file is 'read only'. I tried "register_globals" = on and off with no effect and I have only one "php.ini".

After the setup i can login and write to the database (I can create users), but when I go to "admin :: page layout" and try to update the page layout I get the following message:

Code: Select all

Warning: fopen(/phpwcms/include/inc_conf/conf.pagelayout.inc.php): failed to open stream: No such file or directory in E:\web\phpwcms\include\inc_lib\general.inc.php on line 713

Warning: Cannot modify header information - headers already sent by (output started at E:\web\phpwcms\include\inc_lib\general.inc.php:713) in E:\web\phpwcms\include\inc_act\act_pagelayout.php on line 144
And this is my conf.inc.php

Code: Select all

<?

// database values
$phpwcms["db_host"]           = "localhost";
$phpwcms["db_user"]           = "********";
$phpwcms["db_pass"]           = "********";
$phpwcms["db_table"]          = "phpwcms";
$phpwcms["db_prepend"]        = "";
$phpwcms["db_pers"]           = 1;

// site values
$phpwcms["site"]              = "http://localhost/";
$phpwcms["admin_email"]       = "";

// paths
$phpwcms["root"]         		= "phpwcms";         //default: ""
$phpwcms["file_path"]         = "phpwcms_filestorage";    //default: "phpwcms_filestorage"
$phpwcms["file_tmp"]          = "phpwcms_tmp";     //default: "phpwcms_tmp"
$phpwcms["templates"]         = "phpwcms_template";    //default: "phpwcms_template"
$phpwcms["dir_thlist"]        = "thumb_list";   //default: "thumb_list"
$phpwcms["dir_preview"]       = "thumb_preview";  //default: "thumb_preview"
$phpwcms["content_path"]      = "content"; //default: "content"
$phpwcms["cimage_path"]       = "images";  //default: "images"
$phpwcms["ftp_path"]          = "phpwcms_ftp";     //default: "phpwcms_ftp"

// content values
$phpwcms["file_maxsize"]      = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"]     = 538; //max width of the article content column - important for rendering multi 
column images
$phpwcms["img_list_width"]    = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"]   = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"]    = 538; //max width of the large preview image
$phpwcms["img_prev_height"]   = 400; //max height of the large preview image
$phpwcms["max_time"]          = 1800; //logout after max_time/60 seconds

// other stuff
$phpwcms["compress_page"]     = 0; //if 1 = page compression, 0 = no compression

// debugging timer
$phpwcms["timer"]             = 0; //is for displaying a how long it needs to create

$phpwcms["imagick"]           = 0; //0 = GD,  1 = ImageMagick convert
$phpwcms["imagick_path"]      = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"]           = 1; //0 = GD1, 1 = GD2


?>
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

maybe this is not a problem but if you say you use GD then you have to insert you path to it - as far as I know... I´m just a newbie

$phpwcms["imagick_path"] = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 1; //0 = GD1, 1 = GD2
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

ralphk wrote:

Code: Select all

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) 

Code: Select all

Warning: fopen(/phpwcms/include/inc_conf/conf.pagelayout.inc.php): failed to open stream: No such file or directory in E:\web\phpwcms\include\inc_lib\general.inc.php on line 713
The messages above appear to be related to path structure. According to this thread-->http://www.phpwcms.de/forum/viewtopic.php?t=61 you should next try to determine what path ~is~ returned when $_SERVER["DOCUMENT_ROOT"] is called. This can be done by executing this:

Code: Select all

<?php echo $_SERVER["DOCUMENT_ROOT"] ?>
If it is not defined for some reason... try same code with $DOCUMENT_ROOT instead.

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at E:\web\phpwcms\include\inc_lib\general.inc.php:713) in E:\web\phpwcms\include\inc_act\act_pagelayout.php on line 144
This message "apparently" can be controlled by editing php.ini with the following change:

Code: Select all

output_buffering = On;
See this thread-->http://www.phpwcms.de/forum/viewtopic.php?t=293
ralphk
Posts: 11
Joined: Fri 28. Nov 2003, 21:50

Post by ralphk »

I checked both variable, but none is set. That's why I thought from the beginnig that this would be the source of the problems.
I also read the two threads you sent, but they didn't help.

In the meantime i installed phpwcms on a linux machine. In the beginning I also had the errors:

Code: Select all

filestorage:   phpwcms_filestorage    FALSE (not existing) ..etc
I could solve the problem (Linux/apache) by changing the permissions on the affected folders to full access everybody. On my XP workstation everybody has full access to these folders but I still have the same problems.
User avatar
Oliver Georgi
Site Admin
Posts: 9945
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Which PHP version do you use?
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
ralphk
Posts: 11
Joined: Fri 28. Nov 2003, 21:50

Post by ralphk »

I use PHP Version 4.3.4.
User avatar
Oliver Georgi
Site Admin
Posts: 9945
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Hm?
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
cczfury
Posts: 11
Joined: Sun 23. Nov 2003, 10:42

hmm

Post by cczfury »

I have same problem as you. I use Windows 2000 Professional with IIS 5.0

Paths are not detected, yet permissions are all set. Also, you get errors when you try to post articles :(
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

How ~might~ the errors change if you try:

Replace

Code: Select all

$phpwcms["site"]              = "http://localhost/";
With

Code: Select all

$phpwcms["site"]              = "/";
ralphk
Posts: 11
Joined: Fri 28. Nov 2003, 21:50

Post by ralphk »

To cczfury: I don't get any error when trying to create articles, when submitting the article, the request times out

Replacing the code as DeXXus proposed didn't change anything. I get the same error.
User avatar
Oliver Georgi
Site Admin
Posts: 9945
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Try to update to most current IIS version - you can download. And then test again.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
ralphk
Posts: 11
Joined: Fri 28. Nov 2003, 21:50

Post by ralphk »

As far as I know, you cannot update IIS 5.1 to e.g. 6,0. The Version is determined by the OS. 4 is Win NT 4, 5.x is Win 2000 and XP, 6 is Windows Server 2003. I could only apply the currently available Patches, but it should be up to date. I'll try to apply all current patches again...
User avatar
Oliver Georgi
Site Admin
Posts: 9945
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

I have tested for you:
Microsoft-IIS/5.0 on Windows NT 5.0 build 2195
Server API > ISAPI

everything is working!!!

So it should be a problem with your installation.

what happens if you create such "info.php" containing:

Code: Select all

<?php

echo $_SERVER["DOCUMENT_ROOT"]."<hr>";
phpinfo();


?>
can you send an link?

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Post Reply