Go to the Stanford University web site
Log In
(To add something to the Commons.)

MediaWiki Installation Instructions

IT Services Installer

As of 04/10/09 a web-based installer is available for MediaWiki. You can find it at https://tools.stanford.edu under Web Services, Collaboration Tools Installer.

Installation Instructions

Thanks to Dodi and the CRC Team in IT Services for providing the original instructions and getting us (Documentation Group in IT Services) started in this direction!

Please provide feedback on these instructions directly here or questions can be directed to mediawiki-users@lists.stanford.edu.


You will need a MySQL database to store Mediawiki. A MySQL account can be obtained by any administrator of /dept/, /group/ or /service/ directories by going to IT Services tools page at https://tools.stanford.edu/ (scroll down to the end for the MySQL request page).

Basic Installation

First, download mediawiki to a local directory. You can download it using the web at http://www.mediawiki.org/wiki/Download and then use SFTP to transfer it over, or download the file directly into the installation directory using the command line and wget:

wget http://download.wikimedia.org/mediawiki/1.11/mediawiki-1.11.1.tar.gz

tar -xvf mediawiki-1.11.1.tar.gz

Rename the directory if you wish.

mv mediawiki-1.11.1 wiki

Protect your wiki using WebAuth at this point.

Then, point your browser to the directory containing the wiki. You'll be greeted with a page with a link to set up the wiki.

An installation page will show up showing you whether the requirements are met.
Hopefully they all are and you can proceed with the installation:

I kept all the option as default except for:

* Entering a WikiName
* Changing the contact email address
* Creating an admin account
* Adding information about the MySQL database.

After you submit the page, if all goes well, you'll see a message asking you to move config/LocalSettings.php to the main directory.
Access the wiki using a web browser. At this point you should have a standard installation of MediaWiki up and running.

Changing Timezone

Modify LocalSettings.php by adding the following code:

#Set Default Timezone
$wgLocaltimezone = "America/Los_Angeles";
$oldtz = getenv("TZ");
# Versions before 1.7.0 used $wgLocalTZoffset as hours.
# After 1.7.0 offset as minutes
$wgLocalTZoffset = date("Z") / 60;

Allowing File Uploads

Add the following to LocalSettings.php:

# For enabling uploading of files
$wgEnableUploads = true;
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg',