Mediawiki

= Installation =

Ubuntu 16.04.2 LTS (Xenial) and Debian Stretch include PHP 7.0, and renamed many packages from "php5" to plain "php". In addition, some PHP modules are now in separate packages (xml, mbstring).

sudo apt-get install apache2 mysql-server php php-mysql libapache2-mod-php php-xml php-mbstring

Ubuntu Trusty, Debian Jessie and Raspbian (Jessie) include PHP 5, and use "php5" in most (but not all) packages.

sudo apt-get install apache2 mysql-server php5 php5-mysql libapache2-mod-php5

Get MediaWiki

cd Downloads wget https://releases.wikimedia.org/mediawiki/1.28/mediawiki-1.28.2.tar.gz

Extract in your Web directory

tar -xvzf /pathtofile/mediawiki-*.tar.gz sudo mkdir /var/www/html/mediawiki sudo mv mediawiki-*/* /var/www/html/mediawiki

Configure MySQL

mysqladmin -u root password "enter the new password here"

Optional: Configure PHP

Change Maximum upload file size in File Uploads section to sudo nano /etc/php5/apache2/php.ini upload_max_filesize = 20M

Memory limit memory_limit = 128M

= Logo =

= Favicon =

= Restoring From Backup =

Restore Images php mediawiki/maintenance/importImages.php --search-recursively images/

Rebuild all php mediawiki/maintenance/php5 rebuildall.php


 * References