Configuration Miki's Kiwi Wiki on Noekeon.org: Difference between revisions

From miki
Jump to navigation Jump to search
Line 92: Line 92:
== Installation ==
== Installation ==
* Version '''mediawiki 1.13.0'''.
* Version '''mediawiki 1.13.0'''.
* First go to [http://controlpanel.priorweb.be/ Priorweb control panel], ''MySQL'' section, and creates new user:
* First go to [http://controlpanel.priorweb.be/ Priorweb control panel], ''MySQL'' section, and creates new user (see <tt>$wgDBname</tt>, <tt>$wgDBuser</tt> and <tt>$wgDBpassword</tt> above)
* and go to [http://mail.priorweb.be/ Priorweb mailmanager] to create email address (see <tt>$wgEmergencyContact</tt>)
::username: '''miki'''
::pwd: '''********'''
::database: '''mikiwiki'''
* and go to [http://mail.priorweb.be/ Priorweb mailmanager] to create email address
:: email: '''miki@noekeon.org'''
* then ssh to <tt>daemenj@ftp.noekeon.org</tt>:
* then ssh to <tt>daemenj@ftp.noekeon.org</tt>:
{{pl2|<source lang="bash">
{{pl2|<source lang="bash">
% cd kiwi.noekeon.org/
cd kiwi.noekeon.org/
% wget http://download.wikimedia.org/mediawiki/1.13/mediawiki-1.13.0.tar.gz
wget http://download.wikimedia.org/mediawiki/1.13/mediawiki-1.13.0.tar.gz
% tar -xvzf mediawiki-1.13.0.tar.gz
tar -xvzf mediawiki-1.13.0.tar.gz
% mv mediawiki-1.13.0 miki
mv mediawiki-1.13.0 miki
% cd miki
cd miki
% chmod +w config
chmod +w config
</source>}}
</source>}}
* Browse to '''https://kiwi.noekeon.org/miki/config/'''. Enter settings as given further.
* Browse to '''https://kiwi.noekeon.org/miki/config/'''. Enter settings as given further.
* Move configuration file:
* Move configuration file:
{{pl2|<source lang="bash">
{{pl2|<source lang="bash">
% mv config/LocalSettings.php .
mv config/LocalSettings.php .
% chmod 600 LocalSettings.php
chmod 600 LocalSettings.php
% rm -r config
rm -r config
</source>}}
</source>}}
* It's done!
* It's done!

== Upgrade ==
* Version '''mediawiki 1.15.1'''
* Update procedure explained in <tt>UPGRADE</tt>:
{{pl2|<source lang="bash">
mv miki miki-old
tar -xvzf mediawiki-1.15.1.tar.gz
mv mediawiki-1.15.1 miki
cp miki-old/LocalSettings.php miki
cp -r miki-old/images miki
cp -r miki-old/extensions miki
rm -r miki/config
cd miki
cp AdminSettings.sample AdminSettings.php
vi AdminSettings.php # Edit the file as necessary
cd maintenance
php update.php
rm -r ../miki-old
# Don't forget to remove miki-old when everything's fine
</source> }}


== Backup ==
== Backup ==

Revision as of 16:46, 29 October 2009

Reference

Consult the User's Guide for information on using the wiki software.

Wiki Configuration

Host-Side Configuration

  • Wiki configuration settings during install:
Field Value Field Value
Wiki name miki email address auth enabled
contact e-mail ($wgEmergencyContact) miki@noekeon.org ($wgDBtype) database type MySQL
Language en - English ($wgDBserver) database host mysqlhost (as said on Priorweb's controlpanel)
Copyright no license ($wgDBname) database name mikiwiki
Admin username mikiadmin ($wgDBuser) DB username miki
Admin pwd ******** ($wgDBpassword) DB password ********
Object caching no caching su account <unchecked>
Email features enabled DB table prefix <none>
user-to-user email enabled Storage engine InnoDB
email notification enabled (discussion & watchlist) database character set MySQL 4.1/5.0 binary
$wgEnableUploads = true;
...
$wgLogo = "$wgScriptPath/kiwi.png";
  • File includes/DefaultSettings.php:
    • Change supported upload file types (added 'pdf' and 'zip').
    • Restrict anonymous editing (edit requires user to login)
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'zip' );
...
$wgGroupPermissions['*'    ]['edit']             = false;
user: mip
pwd: ********
email: miki.mip@noekeon.org
real name: Mike

Extensions

Here the list of extensions installed on the Wiki:

  • Extension SyntaxHighlight_GeSHi.
    • Version r24298 (July 21, 2007) / GeSHi version 1.0.8.
    • Patched to restore old GeSHi 1.0.7 formatting and to support enclose="valid".
  • (2009-09-05) Extension RawFile
    • Patched to add optional param to {{#filelink}}.

Installation

  • Version mediawiki 1.13.0.
  • First go to Priorweb control panel, MySQL section, and creates new user (see $wgDBname, $wgDBuser and $wgDBpassword above)
  • and go to Priorweb mailmanager to create email address (see $wgEmergencyContact)
  • then ssh to daemenj@ftp.noekeon.org:
cd kiwi.noekeon.org/
wget http://download.wikimedia.org/mediawiki/1.13/mediawiki-1.13.0.tar.gz
tar -xvzf mediawiki-1.13.0.tar.gz
mv mediawiki-1.13.0 miki
cd miki
chmod +w config
mv config/LocalSettings.php .
chmod 600 LocalSettings.php
rm -r config
  • It's done!

Upgrade

  • Version mediawiki 1.15.1
  • Update procedure explained in UPGRADE:
mv miki miki-old
tar -xvzf mediawiki-1.15.1.tar.gz
mv mediawiki-1.15.1 miki
cp miki-old/LocalSettings.php miki
cp -r miki-old/images miki
cp -r miki-old/extensions miki
rm -r miki/config
cd miki
cp AdminSettings.sample AdminSettings.php
vi AdminSettings.php                          # Edit the file as necessary
cd maintenance
php update.php
rm -r ../miki-old
# Don't forget to remove miki-old when everything's fine

Backup

Some references:

My procedure:

  • Copy this file to the wiki server, and make it executable.
  • Run this script on the machine where the backup files are to be saved (adapt the script to your needs):