

If SELinux is enabled on your system then apply below selinux rule on mediawiki folder, $ getenforce Move mediawiki-1.37.1 to apache document root (/var//var/www/html/mediawiki 5) Set the required permissions on mediawiki directoryĬhange the file and group owner of mediawiki folder using chown command $ sudo chown -R apache:apache /var/www/html/mediawiki/ Use following wget command to download mediawiki 1.37, $ wget wget Įxtract the downloaded file using tar command. Please refer this link to get latest version of MediaWiki.

4) Download latest MediaWikiĪt the time of writing this article, latest version of Mediawiki 1.37 was available. Replace the database name, user name and its credentials in above commands as per your setup. MariaDB > GRANT ALL PRIVILEGES ON mediawiki_db.* TO IDENTIFIED BY ' WITH GRANT OPTION Now create database for mediwiki using following commands, $ mysql -u root -p

To Secure mariadb database, run following command, $ sudo mysql_secure_installation $ sudo systemctl enable mariadb 3) Secure MariaDB and Create Database for mediawiki Run the beneath commands to start and enable apache web server and mariadb service $ sudo systemctl start httpd
#Mediawiki ubuntu install
$ sudo dnf install -y httpd php php-mysqlnd php-gd php-xml php-intl mariadb-server mariadb php-mbstring php-json 2) Start Web Server and Database Service If they are not installed on your system, please use the below commands to install, $ sudo dnf module reset php 1) Install prerequisite OS packagesįor mediawiki installation on Linux we must first install Web server (Apache), PHP and Database ( MySQL / MariaDB ). Note : For MediaWiki ≥ 1.35, on RHEL systems php 7.4 or higher is recommended.
