Manual:Running MediaWiki on ALT Linux
From MediaWiki.org
![]() |
It has been suggested that this page or section be merged with Manual:Installing MediaWiki. (Discuss) |
Contents
Introduction[edit | edit source]
This article gives instructions for people who want to run MediaWiki on a ALT Linux system.
Prerequisites: Apache, MySQL and PHP[edit | edit source]
Versions of packages in ALT Linux branch/4.0 are ok for MediaWiki.
Just do a
apt-get install MySQL-server MySQL-client apt-get install httpd apt-get install apache-mod_php5 php5-dom
ImageMagic and librsvg are also available:
apt-get install ImageMagick librsvg
You can use GraphicsMagick instead of ImageMagick - former has less dependencies (in particular, X11 is not required):
apt-get install GraphicsMagick-ImageMagick-compat
PHP security configuration[edit | edit source]
PHP in ALT Linux has quite secure defaults, so change the following settings in /etc/php/<version>/apache-mod_php/php.ini:
- safe_mode - turn it off
- memory_limit - raise to 20M
- suhosin.executor.func.blacklist, suhosin.executor.eval.blacklist, disable_functions - remove 'system', 'chdir', 'popen' and 'passthru' from those blacklists.
- remove 'exec', 'shell_exec', 'chdir' from blacklists
Page editing will break on very long pages unless you change the limit in /etc/php/<version>/apache-mod_php/php.d/suhosin.ini:
- suhosin.post.max_value_length - increase it to 650000
Installation[edit | edit source]
After relaxing PHP security settings just use generic installation instructions.