[pmwiki-users] Re: Can any one help me
Patrick R. Michaud
pmichaud at pobox.com
Mon Apr 4 10:03:30 CDT 2005
On Mon, Apr 04, 2005 at 08:12:07AM +0200, chr at home.se wrote:
> > 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...
It's very unlikely to be the Apache version. Here's
http://www.cclug.org/wiki/Main/HomePage?n=Main.HomePage&action=phpinfo
PHP version 4.3.10
SERVER_SOFTWARE Apache/1.3.33 (Unix)
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
I *wish* it were as simple as checking Apache 1 versus Apache 2,
the issue always comes down to strange PHP builds and configurations.
Pm
More information about the pmwiki-users
mailing list