Manual:Running MediaWiki on Fedora

From MediaWiki.org
Jump to: navigation, search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
English • ‎español • ‎日本語 • ‎polski • ‎português • ‎русский


Installation guidesManual:Installation guide
FreeBSDManual:Running MediaWiki on FreeBSD
GNU/LinuxManual:Running MediaWiki on GNU/Linux
- ALT LinuxManual:Running MediaWiki on ALT Linux
- Arch LinuxManual:Running MediaWiki on Arch Linux
- DamnsmalllinuxManual:Running MediaWiki on Damnsmalllinux
- Debian or UbuntuManual:Running MediaWiki on Debian or Ubuntu
- FedoraManual:Running MediaWiki on Fedora
- GentooManual:Running MediaWiki on Gentoo Linux
- MandrivaManual:Running MediaWiki on Mandriva
- Red Hat Enterprise LinuxManual:Running MediaWiki on Red Hat Linux
- SlackwareManual:Running MediaWiki on Slackware Linux
Mac OS XManual:Running MediaWiki on Mac OS X
NetWareManual:Running MediaWiki on NetWare
SolarisManual:Running MediaWiki on Solaris
- Solaris 11 / opensolarisManual:Running MediaWiki on Solaris 11 / opensolaris
- Solaris 10Manual:Running MediaWiki on Solaris 10
WindowsManual:Running MediaWiki on Windows
- Windows Server 2016Manual:Installing MediaWiki on Windows Server 2016
on a stickManual:Wiki on a stick
- Uniform ServerManual:Installation on Uniform Server (Windows)
- XAMPPManual:Installing MediaWiki on XAMPP
Sourceforge.netManual:Installing MediaWiki on SourceForge.net
Wikimedia-logo-meta.png

This page was moved from MetaWiki.
It probably requires cleanup – please feel free to help out. In addition, some links on the page may be red; respective pages might be found at Meta. Remove this template once cleanup is complete.

You have two options for installing MediaWiki on Fedora: installing it as an rpm/dnf package or simply deploying the PHP yourself from the tarball or from the Git repository.

Running manually[edit]

This guide assumes that you are using Apache and MySQL. Feel free to add instructions for other servers and databases.

You can simply drop the tarball in a directory accessible to your web server, navigate to it and run the installation wizard. It is closer to the way the developers work, so it makes it easier for the developers to support you.

You need to have these packages installed before using MediaWiki:

  • httpd
  • mysql-server
  • php
  • php-pear
  • php-xml
  • php-pdo-mysql # in Fedora 25, php-mysql was deprecated.
  • php-intl
  • php-pecl-zendopcache # use php-pecl-apc instead of using Fedora 19 or older
  • php-gd
  • php-mbstring
  • ImageMagick-perl

So basically just doing the following command shall do

sudo dnf install -y httpd mysql-server php php-pear php-xml php-pdo-mysql php-intl php-pecl-zendopcache php-gd php-mbstring ImageMagick-perl

Installing as a package[edit]

MediaWiki is available as of Fedora Core 4 or later. In order to install it, you should run (as root):

dnf install mediawiki

After installation, open the file /usr/share/doc/mediawiki/README and follow the instructions there. Also, the file /usr/share/mediawiki/INSTALL.

Bugs[edit]

If blank page when clicking on "Please setup the wiki first.", see this bug (and fix): https://bugzilla.redhat.com/show_bug.cgi?id=967302

See also[edit]