Installation
Download MediaWiki
wget https://releases.wikimedia.org/mediawiki/1.36/mediawiki-1.36.2.tar.gzDecompress files
tar xvzf mediawiki-*.tar.gzInstall dependencies
sudo apt-get install php php-apcu php-intl php-mbstring php-xml php-mysql mariadb-server apache2Install optional dependencies
ImageMagick or GD = Required for image thumbnailing TeX: Require for inline display of math formulas Sendmail or Postfix = Require for sending emails GNU diff3 = Allows autoresolving of conflicts ## Make mediawiki folder
mkdir /var/www/mediawikiMove files to /var/www
mv mediawiki-1.36.2/* /var/www/mediawiki/Set file permissions
chown -R httpd:httpd /var/www/mediawiki/
find /var/www/mediawiki/ -type f -exec chmod 644 {} \;
find /var/www/mediawiki/ -type d -exec chmod 755 {} \;Secure MySQL Database
mysql_secure_installationCreate Database
CREATE DATABASE wikidb;
CREATE USER 'wikiadmin'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wikidb.* TO 'wikiadmin'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Configure Apache
cd /etc/apache2/sites-available/
sudo cp 000-default.conf mediawiki.confUpdate DocumentRoot in mediawiki.conf
DocumentRoot /var/www/mediawikiEnable the new apache conf
a2dissite 000-default.conf
a2ensite mediawiki.conf
systemctl reload apache2Go to the IP in your web browser and follow guide to complete installation At the end of installation, a LocalSettings.php file will auto download. Save this file in /var/www/mediawiki