Installation Notes: Difference between revisions

From Drorbn
Jump to navigationJump to search
No edit summary
No edit summary
Line 42: Line 42:
In LocalSettings.php, uncomment out <code>$wgEnableUploads = true;</code> and add
In LocalSettings.php, uncomment out <code>$wgEnableUploads = true;</code> and add
$wgFileExtensions = array( 'png','jpg','jpeg','ogg','pdf');
$wgFileExtensions = array( 'png','jpg','jpeg','ogg','pdf');



===Allow us to be framed===
===Allow us to be framed===

Revision as of 10:45, 15 August 2006

Basic Installation

Follow the instructions at [1]

Bring mediawiki-1.5.7.tar.gz from [2] and unpack it into katlas:/www/html/drorbn. In that directory:

chown -R root:apache *
chmod -R o-rwx *
chmod -R g+rw config

Go to [3] 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 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 $wgSiteName = ...:

ini_set("session.name", "{$wgSitename}Session" );

See documentation on customizing the interface and the User's Guide for usage and configuration help.

Modifying the navigation box

Edit MediaWiki:Sidebar.

Enable <math></math> 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.

Enable image uploads

In LocalSettings.php, uncomment out $wgEnableUploads = true; and add

$wgFileExtensions = array( 'png','jpg','jpeg','ogg','pdf');

Allow us to be framed

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