MediaWiki

From ArchWiki
Jump to: navigation, search

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:MediaWiki#)
Note: If you are using xampp, there are different steps you need to take after installing. More info here

Installation

Install php-apache, php-intl, imagemagick, mysql and mediawiki, all available from the official repositories.

Instead of imagemagick you can install php-gd. Also instead of mysql you can install sqlite3 or postgresql.

Create /etc/webapps/mediawiki/httpd-mediawiki.conf from the provided example.

Add following lines to /etc/httpd/conf/httpd.conf

LoadModule php5_module modules/libphp5.so
Include conf/extra/php5_module.conf
Include /etc/webapps/mediawiki/httpd-mediawiki.conf

Adjust permissions in /usr/share/webapps/mediawiki/.htaccess

Restart apache with

sudo /etc/rc.d/httpd restart

Tips

Mathematics (texvc)

Usually installing texvc package and enabling it in config are enough:

 $wgUseTeX = true;

If you get problems, try to increase limits for shell commands:

 $wgMaxShellMemory = 8000000;
 $wgMaxShellFileSize = 1000000;
 $wgMaxShellTime = 300;

Unicode

Check that php, apache and mysql uses UTF-8. Otherwise you may face strange bugs because of encoding mismatch.