I've just installed MediaWiki at http://www.gregturner.org/wiki. As you can see, it's got all of the link URLs wrong, including for the stylesheet. At first, it didn't run at all, returning a 500 because the URL redirected to http://gregturner.org/execscriptdir/php.cgi/index.php?title=Main_Page. I looked in LocalSettings.php and found:
$wgScriptPath = "/execscriptdir/php.cgi"
which I changed to
$wgScriptPath = "/wiki"
and then it ran, but still the links are messed up. I've had a manual look about (but this isn't my computer and I can't batch search the contents of files) and can't find any other mention of execscriptdir.
phpInfo stores this string on
SCRIPT_FILENAME and SCRIPT_NAME
plus when surrounded by _SERVER[] or _ENV[]
The question: where in the code is it getting the value "/execscriptdir/php.cgi" for every URL and where can I change it to "/wiki"?
Thanks a lot!
G.
Greg Turner wrote:
The question: where in the code is it getting the value "/execscriptdir/php.cgi" for every URL and where can I change it to "/wiki"?
That's what PHP and your web server are reporting. See config/index.php for the exact variables it checks.
-- brion vibber (brion @ pobox.com)
Brion Vibber wrote:
Greg Turner wrote:
The question: where in the code is it getting the value "/execscriptdir/php.cgi" for every URL and where can I change it to "/wiki"?
That's what PHP and your web server are reporting. See config/index.php for the exact variables it checks.
That's my point - I did, and I changed the $conf->ScriptPath line as follows:
$conf->ScriptPath = "/wiki";
This stops the index.php from redirecting somewhere wrong, but all the URLs are still broken with "/execscriptdir/php.cgi" instead of "/wiki".
On 14/07/05, Greg Turner greg@gregturner.org wrote:
That's what PHP and your web server are reporting. See config/index.php for the exact variables it checks.
That's my point - I did, and I changed the $conf->ScriptPath line as follows:
$conf->ScriptPath = "/wiki";
This stops the index.php from redirecting somewhere wrong, but all the URLs are still broken with "/execscriptdir/php.cgi" instead of "/wiki".
1) Check that $wgScriptPath and $wgArticlePath are set correctly in LocalSettings.php
2) Check that what you're seeing isn't a cached version from before you fixed it: does an edit preview render the correct links? If so, you can use the URL parameter "action=purge" (in place of "action=edit") to manually clear MediaWiki's internal cache of a page. I believe you can also empty the database table responsible for storing it, but I'm not 100% sure how.
3) Remember to also by-pass / clear your browser's cache - usually by holding down either shift or control while clicking the refresh button.
wikitech-l@lists.wikimedia.org