[Mediawiki-l] Slowness

N. M. Buzdor mediawiki at buzdor.com
Tue Jan 11 18:48:10 UTC 2005


> Fix your $wgScript setting or rewrite rules. Read the list archives for
> many instances of this problem.

Brion Vibber--

Thanks for your attention.  I have searched the archives, as well as the
MediaWiki documentation that I could find.  I have come to conclude that my
variables appear to be correct:

---LocalSettings.php snippet---
$wgScriptPath     = "";
$wgScript           = "$wgScriptPath/index.php";
$wgRedirectScript   = "$wgScriptPath/redirect.php";
---End snippet---

since my wiki is installed at the root http://cmw.buzdor.org/ meaning that
http://cmw.buzdor.org/index.php?title=Main_Page is the correct location for
the main page.  Now, this is not the root of the filesystem, merely the root
from a browser point of view (which is how redirects are sent).  If this
variable needs to represent /home/www/username/htdocs/cmw/ (which I believe
would be wrong), I would need to change it.

I checked with several .htaccess experts and they agreed that my .htaccess
was functioning correctly:

---.htaccess snippet---
RewriteEngine On
RewriteOptions MaxRedirects=15
Options +FollowSymlinks
RewriteBase /
[... other rewrites excluded, confirmed innocent and irrelevant ...]
RewriteCond %{HTTP_HOST} cmw.buzdor.org
RewriteCond %{REQUEST_URI} !^/cmw/
RewriteRule ^(.*)$ cmw/$1 [L]
---End snippet---

I have no wish to deal with the "ugly url" issue, and have made no tweaks or
changes to eliminate the long URLs.  I prefer to leave them (in case I need
an article with the name LocalSettings.php, for example :) ).

I looked through the archives and could not find any evidence that this
$wgScript value (or it's dependency, $wgScriptPath) was incorrect.  I
request that you show me what I've got misconfigured and we can put a flag
of some sort on your reply so that every time someone else has this problem
("many instances of this problem") we can point them to a specific URL with
the exact answer.

Also, this represents a problem with the installer since this is a fresh
install with no modifications to the code or settings other than those made
by the installer script at install-time.  Perhaps the installer can be
patched.

Thanks so much for your time and I value your advice,
--N. Buzdor




More information about the MediaWiki-l mailing list