Differences between revisions 21 and 22
Revision 21 as of 2008-01-27 09:36:31
Size: 4529
Editor: FranklinPiat
Comment:
Revision 22 as of 2008-02-27 18:59:37
Size: 4549
Editor: OndrejCertik
Comment:
Deletions are marked like this. Additions are marked like this.
Line 55: Line 55:
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:
Install mysql, and setup this apache configuration:
Line 83: Line 82:
go to http://wiki.yourdomain.com/mediawiki/config/index.php, fill in the form, copy
LocalSettings to /etc/mediawiki/LocalSettings.php and that's it.

["?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:

  • # apt-get install mediawiki

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:

  • For image thumbnailing, install php5-gd | imagemagick, a module for handling graphics directly from PHP scripts. It supports the PNG, JPEG, XPM formats as well as Freetype/ttf fonts.
  • For LaTeX-compatible math equations rendering: Install 'tetex-bin', 'imagemagick' and a Ghostscript interpreter ('gs-gpl' or 'gs-esp'). To be able to render non-ASCII characters, also install 'cjk-latex'. Uncomment the following line in '/etc/mediawiki1.7/LocalSettings.php' : $wgUseTeX = true; latex-cjk-all, a macro package for LaTeX to enable typesetting in Chinese,

Japanese, Korean and Thai, and it supports Vietnamese

  • memcached, which is for heavy traffic sites.
  • clamav, an ?AntiVirus is an anti-virus toolkit.

  • tetex-extra, additional parts of teTeX
  • mediawiki-extension (Etch) package that might be worth looking at.

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:

  • # mv /var/lib/mediawiki1.7/config/LocalSettings.php \ /var/lib/mediawiki1.7

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, and setup this 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>

go to http://wiki.yourdomain.com/mediawiki/config/index.php, fill in the form, copy ?LocalSettings to /etc/mediawiki/LocalSettings.php and that's it.

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.

Referances

MySQL:

phpMyAdmin: