Installation guides
FreeBSD
GNU/Linux
- ALT Linux
- Arch Linux
- Debian or Ubuntu
- Fedora
- Gentoo
- Mandriva
- Red Hat Enterprise Linux or CentOS
- Slackware
macOS
Solaris
- Solaris 11 / opensolaris
- Solaris 10
Windows
- Windows Server 2019
- Windows Server 2016
- Windows Subsystem for Linux
on a stick
- Uniform Server
- XAMPP
Sourceforge.net

Introduction

This article gives instructions for people who want to run MediaWiki on a ALT Linux system.

Prerequisites: Apache, MySQL and PHP

Versions of packages in ALT Linux branch/4.0 are ok for MediaWiki.

Just do a

apt-get update
apt-get install lamp-server
chkconfig httpd2 on
service httpd2 start
chkconfig mysqld on
service mysqld start
a2enmod mod_php5

For branch/p7 you also have to do

apt-get install php5-dom

PHP security configuration

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 500M
  • 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

Do

service httpd2 restart
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.