Content-type: text/html
setup-mediawiki ~/public/html/wiki
Sets up a Mediawik installation, using the latest available version, in ~/public/html/wiki (so it will show up at http://www.ugcs.caltech.edu/~username/wiki )
After you install your wiki, you need to configure it. Go to http://www.ugcs.caltech.edu/~username/<install directory>/config/index.php, and fill in the blanks. Mostly, you will need to change the contact email, and enter database information. You should select "Postgresql" as the database type, set the host to "postgres", database name to your username, the database user to <username>_cgi, and leave everything else blank. The defaults should be fine.
After you have installed it, you should remove the script's write permission on <install>/config/ by running
fs sa <install directory>/config <username>_cgi none