[pmwiki-users] Re: Can any one help me

chr at home.se chr at home.se
Mon Apr 4 01:12:07 CDT 2005


On Sat, 2 Apr 2005, Patrick R. Michaud wrote:

> BTW, this particular host's settings are very instructive for those 
> who often ask "Why doesn't PmWiki just use XYZ to set $ScriptUrl?"  
> On this host, for the url
> http://nkbbs.org/pmwiki/pmwiki.php/Main/HomePage?n=Main.HomePage&action=phpinfo
> 
>   PHP version     4.3.1
>   SERVER_SOFTWARE Apache 1.3.31 (Unix)
> 
>   SCRIPT_NAME    (not set)
>   PHP_SELF       (no value)
>   REQUEST_URI    /pmwiki/pmwiki.php/Main/HomePage?n=Main.HomePage&action=phpinfo
>   SCRIPT_URL     /pmwiki/pmwiki.php/Main/HomePage
>   SCRIPT_URI     http://nkbbs.org/pmwiki/pmwiki.php/Main/HomePage
>   PATH_INFO      (not set)
> 
> Compare this to pmwiki.org:
> 
>   PHP version     4.3.2
>   SERVER_SOFTWARE Apache/2.0.46 (Red Hat)
>   
>   SCRIPT_NAME     /wiki
>   PHP_SELF        /wiki/Main/HomePage
>   REQUEST_URI     /wiki/Main/HomePage?n=Main.HomePage&action=phpinfo
>   SCRIPT_URL      (not set)
>   SCRIPT_URI      (not set)
>   PATH_INFO       /Main/HomePage
> 
> As you can see, there doesn't appear to be a set of variables that
> a script such as PmWiki can reliably use in every environment to correctly

Is the difference perhaps due to the Apache version? Although it'd be very 
annoying having to check if it's Apache 1 or Apache 2 or whatever...

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list