This page is occasionally backed up to
http://www.math.toronto.edu/~drorbn/wiki_support/Installation_Notes.

===Basic Installation===

Follow the instructions at
[http://meta.wikimedia.org/wiki/MediaWiki_FAQ#Is_it_possible_to_install_more_than_one_wiki_.28MediaWiki.29_on_a_server.3F_How.3F]

Bring mediawiki-1.5.7.tar.gz from [http://www.mediawiki.org/wiki/Download]
and unpack it into katlas:/www/html/drorbn. In that directory:
 chown -R root:apache *
 chmod -R o-rwx *
 chmod -R g+rw config
 chmod -R g+rw images

Go to [http://katlas.math.toronto.edu/drorbn/] to set up the wiki:
  Sysop account: drorbn
  Name of SQL database: drorbn
  DB account: drorbn
  Database table prefix: drorbn_
Move config/LocalSettings.php file into the parent directory.

Go visit the [[Main Page|wiki]].

Add lines to backup script:
  mysqldump -u drorbn -p*** drorbn > drorbn-backup.sql
  gzip -9 -f drorbn-backup.sql
  cp -f drorbn.sql.gz /www/html/backups

Allow logins on several wikis on the same server: Add the following line to
LocalSettings.php after <code>$wgSiteName = ...</code>:
 ini_set("session.name", "{$wgSitename}Session" );

See [http://meta.wikipedia.org/wiki/MediaWiki_i18n documentation on
customizing the interface]
and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's
Guide] for usage and configuration help.

===Modifying the navigation box===

Edit [[MediaWiki:Sidebar]].

===Enable <nowiki><math></math></nowiki> processing===
First, make the /images directory writable:
 chmod -R g+rw images
Next, go to the math directory under the wiki installation, and run make.
Finally, edit LocalSettings.php to enable TeX.

Finally, I've enabled <tt>\bigcirc</tt> and
[http://www.math.toronto.edu/~drorbn/projects/dbnsymb/dbnsymbman.html
dbnsymb] as explained at
http://katlas.math.toronto.edu/wiki/Katlas_installation_notes#Installing_the_Font_dbnsymb.

===Enable image uploads===
In LocalSettings.php, uncomment out <code>$wgEnableUploads = true;</code>
and add
 $wgFileExtensions = array( 'png','jpg','jpeg','ogg','pdf');

===Allow us to be framed===

Comment out the obvious line in <code>skins/common/wikibits.js</code>.

===Spam Protection===
Preventing edits that contain 3 or more "http:" string in one line: Add to
LocalSettings.php:
 $wgSpamRegex="/htp:.*htp:.*htp:|overflow: *auto;|display: *none;/";
(though replace htp's by http's).

===Block anonymous edits and account creations===

In LocalSettings.php, add

 # Prevent new user registrations except by sysops
 $wgGroupPermissions['*']['createaccount'] = false;
 # Disable anonymous editing
 $wgGroupPermissions['*']['edit'] = false;

and then edit [[MediaWiki:Emailforlost]]. (see Mediawiki's
[http://www.mediawiki.org/wiki/Preventing_Access Manual: Preventing
Access].)

