From: Matti A. <ma...@ik...> - 2002-11-01 22:25:11
|
pe, 01-11-2002 kello 21:48, Jeff Dairiki kirjoitti: > In order that we can try to fix the auto-detection: > > Can you tell me what php_sapi_name() returns on your system. > Apparently, it's something other than 'apache'. apache2filter > Also, is there way one can tell (from PHP) whether AcceptPathInfo > is on or not? I assume if (defined($_SERVER['PATH_INFO'])) then > AcceptPathInfo is enabled, but I don't think the converse is true. > (If the URL does not contain any trailing path info, then (at least > in Apache 1.3.x, PATH_INFO is undefined (not just empty).) If AcceptPathInfo is on, PATH_INFO behaves exactly as in Apache 1.x, i.e. it may either be undefined or defined, depending on the actual path. Unfortunately I have no idea whether the value of AcceptPathInfo can be deduced from within PHP. Maybe someone with more experience on PHP can answer that? However, since the preferred installation method (as described in http://phpwiki.sourceforge.net/phpwiki/PrettyWiki) requires modifying the top-level .htaccess or the server configuration, IMHO it would be simpler to just provide a sample top-level .htaccess like follows: <IfDefine APACHE2> AcceptPathInfo on ForceType application/x-httpd-php </IfDefine> <IfDefine !APACHE2> SetHandler application/x-httpd-php </IfDefine> Hmm... Of course, AcceptPathInfo setting should still be detected somehow, or else it might be difficult to get PhpWiki to work reliably out-of-the-box... Suggestions for workarounds? Cheers, m. |