On 26/06/07, Azurite <azurite(a)seventh-star.net> wrote:
Hi all,
My host got back to me regarding the odd infinite redirection of my
Wiki, and said that it's caused by the fact that PHP5 on my shared
server is run using CGI, which is apparently not compatible with
MediaWiki. Is there a way to change that, or should I just stick with
ver. 1.6, since the Apache module on my server uses PHP4?
"Infinite redirection" problems are often due to incorrect path
settings in LocalSettings.php, which causes MediaWiki to redirect
requests to an (incorrect) URL which it believes to be the canonical
form.
One thing that strikes me about moving from an Apache module to a CGI
module for PHP is that the default "prettified" URL mechanism, i.e.
/path/to/mediawiki/index.php/Page_title won't work too well, since CGI
and PATHINFO have a relationship founded upon hatred.
Check that the paths, such as $wgScriptPath (and $wgScript, if set)
are correct in LocalSettings.php. Also check that $wgArticlePath is
set to "{$wgScript}?title=$1" as opposed to the default, "prettier"
form - while MediaWiki detects this during installation, it won't
detect it if the PHP configuration changes.
Note that as far as I know, the mod_rewrite module will still work
when rewriting URLs, so you can still have a "pretty URL" scheme if
you want.
Rob Church