["?WikiNature"]


An open source wiki engine which is is available under the GNU General Public License and developed on ?SourceForge via CVS.

It's used in ?WikiMedia Foundation projects (?WikiPedia, Wiktionary, Wikisource, Wikibooks....)

See: http://www.mediawiki.org/

Installation - Etch

IN CONSTRUCTION - HELP IS VERY WELCOME

The mediawiki package is a dummy package made up of mediawiki1.7 and mediawiki1.7-math. To install, enter:

See the README at /usr/shared/doc/mediawiki1.7/README.Debian.gz

MediaWiki also suggests the following packages, which you may want to install these optional features:

Japanese, Korean and Thai, and it supports Vietnamese

CONFIGURATION:

The configuration uses an easy web-based system. It will ask you a lot of questions to set up the configuration. Just go to this URL:

Then copy the generated configuration to the real system location:

After being configured, you should begin your surf on your new wiki using this url:

installation sid

$ apt-get install mediawiki mediawiki-math

Install mysql, go to http://www.myserver.org/mediawiki/config/index.php, fill in the form, copy ?LocalSettings to /etc/mediawiki/LocalSettings.php and that's it. Apache configuration:

<VirtualHost *>
    ServerName wiki.yourdomain.com
    ServerAdmin your@email

    RewriteEngine on
    RewriteRule (.*) /var/lib/mediawiki/$1

    <Directory /var/lib/mediawiki/>
        Options +FollowSymLinks
        AllowOverride All
        order allow,deny
        allow from all
    </Directory>

    # some directories must be protected
    <Directory /var/lib/mediawiki/config>
        Options -FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/lib/mediawiki/upload>
        Options -FollowSymLinks
        AllowOverride None
    </Directory>
</VirtualHost>

source code highlighting

$ apt-get install mediawiki-extensions
$ mwenext SyntaxHighlight_GeSHi.php

See man mwenext for info how it works.

When you do changes like this one, don't forget that mediawiki uses cache, so if some page still shows the old code, you need to purge the cache, for example by loading the page with "?action=purge" added to the end of its URL.

changing the address to /wiki

The default address is:

http://wiki.domain.org/index.php/Main_Page

but this is nicer:

http://wiki.domain.org/wiki/Main_Page

To have that, change this in your apache configuration:

-    RewriteEngine on
-    RewriteRule (.*) /var/lib/mediawiki/$1
+    Alias /wiki /var/lib/mediawiki/index.php
+    Alias /index.php /var/lib/mediawiki/index.php
+    Alias /skins /var/lib/mediawiki/skins
+    Alias /images /var/lib/mediawiki/images
+    Alias / /var/lib/mediawiki/index.php

and add this to your /etc/mediawiki/LocalSettings.php:

$wgArticlePath       = "/wiki/$1";

Don't forget to clean the cache and cookies in your browser, otherwise it may look like it doesn't work for you, while it does.

Using an alternative web server, such as thttpd

IN CONSTRUCTION - HELP IS VERY WELCOME

References

MySQL:

phpMyAdmin: