From: Reini U. <ru...@x-...> - 2007-03-04 13:39:27
|
Tom Eicher schrieb: > Hello, > > I just reinstalled my system using (openSuSE 10.2) (with latest online > updates). My "old" Phpwiki phpwiki-1.3.11rc3 didn't run for strange > reasons ("Object of class RawXml could not be converted to string") > so I tried to go forward with a phpwiki-1.3.12p3. > > The new system has > > Server version: Apache/2.2.3 > > PHP 5.2.0 with Suhosin-Patch 0.9.6.1 (cli) (built: Nov 27 2006 22:39:24) > Copyright (c) 1997-2006 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies > > But somehow it doesn't work too cool: > > The start page gets displayed alright, but whatever I do then, I just > get the start page read-only again. No link works. > That with both USE_PATH_INFO true and false. (And AcceptPathInfo On) > > > I suspect that phpwiki is not given the environment info by the > apache or php, because > 1) I had to set SERVER_NAME etc manually for it to work and This is with very new PHP's only (5.1.x and auto_globals_jit = On) and is available in the recent 1.3.13rc1 package. You can also try to add this to your lib\prepend.php // A new php-5.1.x feature: Turn off php-5.1.x auto_globals_jit = On, or use this mess below. if (empty($GLOBALS['HTTP_SERVER_VARS'])) { $GLOBALS['HTTP_SERVER_VARS'] =& $_SERVER; $GLOBALS['HTTP_ENV_VARS'] =& $_ENV; $GLOBALS['HTTP_GET_VARS'] =& $_GET; $GLOBALS['HTTP_POST_VARS'] =& $_POST; $GLOBALS['HTTP_SESSION_VARS'] =& $_SESSION; $GLOBALS['HTTP_COOKIE_VARS'] =& $_COOKIE; $GLOBALS['HTTP_REQUEST_VARS'] =& $_REQUEST; } unset($k); > > 2) I get with every request: > "lib/Request.php:71: Notice: Undefined index: REMOTE_ADDR" > (and also "lib/Request.php:73: Warning: gethostbyaddr(): Address > is not a valid IPv4 or IPv6 address") and > > 3) the access log looks like > - - [04/Mar/2007:01:41:15 0100] " " 200 28455 "" "" > - - [04/Mar/2007:01:46:14 0100] " " 200 28455 "" "" > - - [04/Mar/2007:01:46:37 0100] " " 200 28455 "" "" > - - [04/Mar/2007:01:46:47 0100] " " 200 28455 "" "" > - - [04/Mar/2007:01:46:56 0100] " " 200 28455 "" "" > > whereas the apache has me logged in: > > 192.168.10.5 - teicher [04/Mar/2007:01:46:47 +0100] "GET > /index.php?pagename=Steuer HTTP/1.1" 200 28455 > "https://teichernet.kicks-ass.org/index.php?pagename=HomePage%2F2007-03-05&action=edit" > "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1) Gecko/20061107 > SUSE/1.0.99-18 SeaMonkey/1.1b" > 192.168.10.5 - teicher [04/Mar/2007:01:46:48 +0100] "GET > /themes/default/phpwiki.css HTTP/1.1" 304 - > "https://teichernet.kicks-ass.org/index.php?pagename=Steuer" > "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1) Gecko/20061107 > SUSE/1.0.99-18 SeaMonkey/1.1b" > > (The above pathes after fiddling a bit the config.ini parameters, > but it's was the same "out of the box"...) > > I tried to allow php globals etc and all such php settings that seemed > related, but never saw a change in behaviour. > > Also strange: First thing, I did have to comment out index.php > line 55 "If any page is empty,...", I don't think I had to > do that in the old version... > > What I'm trying to do is to get the wiki running behind my > Apaches BasicAuth on a SSL port. > > Any hints, ideas, specific requests for more info are greatly > appreciated! > > Tonight, luck wasn't with the diligent ;-/ > > Thanks in advance, Cheers, > Tom. > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://helsinki.at/ http://spacemovie.mur.at/ |