Problem mit IIS 5.1
Problem mit IIS 5.1
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
Ist es u.U. geplant im Code auf Webserver zu überprüfen und danach die Variable zu ersetzen?
Ciao, Ralph
Re: Problem mit IIS 5.1
Might be setting of register_globals in php.ini ?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
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
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:
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:
And this is my conf.inc.php
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) 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 144Code: 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
?>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: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
Code: Select all
<?php echo $_SERVER["DOCUMENT_ROOT"] ?>This message "apparently" can be controlled by editing php.ini with the following change: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
Code: Select all
output_buffering = On;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:
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.
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- Oliver Georgi
- Site Admin
- Posts: 9945
- Joined: Fri 3. Oct 2003, 22:22
- Location: Dessau-Roßlau
- Contact:
- Oliver Georgi
- Site Admin
- Posts: 9945
- Joined: Fri 3. Oct 2003, 22:22
- Location: Dessau-Roßlau
- Contact:
How ~might~ the errors change if you try:
Replace
With
Replace
Code: Select all
$phpwcms["site"] = "http://localhost/";Code: Select all
$phpwcms["site"] = "/";- Oliver Georgi
- Site Admin
- Posts: 9945
- Joined: Fri 3. Oct 2003, 22:22
- Location: Dessau-Roßlau
- Contact:
- Oliver Georgi
- Site Admin
- Posts: 9945
- Joined: Fri 3. Oct 2003, 22:22
- Location: Dessau-Roßlau
- Contact:
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:can you send an link?
Oliver
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();
?>Oliver