Rick DeNatale wrote:
<Directory /var/www/html/w> AllowOverride FileInfo Options php_flag register_globals off
</Directory> Alias /wiki/skins "/var/www/html/w/skins" Alias /wiki "/var/www/html/w"
The alias for /wiki/skins is redundant, as it's already covered by the alias for /wiki.
$IP = "/var/www/html/w";
#without the following line script links come out as /wiki $wgScriptPath = "/w"; $wgScript = "{$wgScriptPath}/index.php"; $wgRedirectScript = "{$wgScriptPath}/redirect.php";
Looks like standard config so far...
#$wgStylePath = "{$wgScriptPath}/skins"; #Basing style on script hides skins??? $wgStylePath = "/wiki/skins";
I'm not sure I understand why this bit is done.
## If using PHP as a CGI module, use the ugly URLs #$wgArticlePath = "$wgScript/$1"; #$wgArticlePath = "$wgScript?title=$1"; $wgArticlePath = "/wiki/$1";
Unless you've made some other configuration on the web server, this would appear to break all article URLs, because they'd be aliased to files as /var/www/html/w/$1.
#Default has $wgUploadPath = "{$wgScriptPath}/upload"; #But there is no upload directory and this seems to control where the #Image object looks so. $wgUploadPath = "{$wgScriptPath}/images"; #Ditto for $wgUploadDirectory DefaultSettings.php had this as "{$IP}/uploads" $wgUploadDirectory = "{$IP}/images"; $wgMathPath = "{$wgUploadPath}/math";
$wgLogo = "$wgStylePath/common/images/merclogo.png";
Before I changed $wgUploadPath and $wgUploadDirectory i was getting missingimage messages, I temporarily modified Skin.php to print the imagePath instead of just the name and it seemed to be correct and the files themselves existed. After the change I just get the alt text and no images.
I'm not sure I understand what you changed it from or to. What did your LocalSettings.php contain before this? If you used a standard configuration it should have looked like:
$wgUploadPath = "$wgScriptPath/images"; $wgUploadDirectory = "$IP/images";
which appears to be exactly equivalent to what you changed it _to_. So what was it before, and why was it different?
-- brion vibber (brion @ pobox.com)