How to install MediaWiki on a subdomain

Here is how to set up MediaWiki on a subdomain and use pretty/short URLs. This was tested on July 1, 2010 with MediaWiki 1.15.4, PHP 5.2.8, MySQL 5.0.90 and Apache 2.2.11.

This assumes you are in a shared hosting situation, and do not have root access and cannot edit the Apache configuration files directly.

Your setup

Suppose you have a site, www.ilikefish.com. Its DocumentRoot is /var/www/ilikefish.com. You then create a subdomain, wiki.ilikefish.com, with a DocumentRoot of /var/www/ilikefish.com/wiki.

Configuring Apache

  1. In /var/www/ilikefish.com/.htaccess, set up a redirect

    RedirectMatch /wiki/(.*) http://wiki.ilikefish.com/$1

  2. In /var/www/ilikefish.com/wiki/.htaccess, set up rewrite rules:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

Configuring MediaWiki

  1. In LocalSettings.php, set the following variables:

    $wgScriptPath = "";
    $wgArticlePath = "/$1";
    $wgUsePathInfo = true;
    $wgLogo = "/my_fish_logo.png";
    $wgScriptExtension = ".php";

Finding Forrester (he’s not at JCCSF)

One of my favourite scenes from Finding Forrester is when Jamal corrects Professor Crawford:

Prof. Robert Crawford: [to Jamal] Perhaps your skills do reach farther than basketball.
Jamal: “Further”
Prof. Robert Crawford: What?
Claire Spence: [whispered to Jamal] Don’t…
Jamal: [to Crawford] You said that my skills reached “farther” than basketball. “Farther” relates to distance, “further” is a definition of degree. You should have said “further”.
Prof. Robert Crawford: Are you challenging me, Mr. Wallace?
Jamal: Not any more than you challenged Coleridge.

The JCCSF’s new tagline is “Your Membership Goes Farther.”

You can see it on their yelp page and on their bus ads:

Where, exactly, does the JCC’s membership take you?

Pac-Man ate my RAID


[>....................]  recovery =  2.5% (3836544/152247936) finish=35.1min speed=70370K/sec
[>....................]  recovery =  3.0% (4642752/152247936) finish=37.5min speed=65481K/sec
[===>.................]  recovery = 15.2% (23276800/152247936) finish=32.2min speed=66725K/sec
[===>.................]  recovery = 18.4% (28154624/152247936) finish=28.9min speed=71392K/sec
[====>................]  recovery = 21.5% (32802560/152247936) finish=28.6min speed=69451K/sec
[=====>...............]  recovery = 28.3% (43166336/152247936) finish=33.4min speed=54268K/sec
[======>..............]  recovery = 33.6% (51163008/152247936) finish=25.9min speed=64964K/sec
[================>....]  recovery = 84.7% (129098432/152247936) finish=7.9min speed=48742K/sec
[===================>.]  recovery = 99.4% (151444800/152247936) finish=0.4min speed=32068K/sec

Mmmm, dots.