MediaWiki is a free and open-source wiki engine.

Step1. Install apache

yum install -y httpd

Step2. Start and enable service

systemctl start httpd
systemctl enable httpd
systemctl status httpd

Step3. Install database

yum install -y mariadb mariadb-server

Step4. Start and enable service

systemctl start mariadb
systemctl enable mariadb

Step5. Setup database


Step6. Create a database

mysql -u root -p
create database media_wiki; ;
create user ' media_wiki'@'localhost' identified by 'yourpassword';
grant all privileges on media_wiki.* to 'media_wiki’@'localhost';
flush privileges;

Step7. Install/Configure PHP repository

yum install
yum install
yum install yum-utils
yum-config-manager --enable remi-php72

Step8. Install PHP packages

yum install php  php-xml php-mbstring php-gd php-mysql php-ldap php-xmlrpc php-mcrypt curl zlib libtool-ltdl php-pdo  php-intl texlive -y

Step9. Download the MediaWiki software

yum install wget unzip

Step10. Untar and move in HTML folder

tar -xvf mediawiki-1.33.1.tar.gz
mv mediawiki-1.33.1 /var/www/html/mediawiki

Step11. Set permission

chown -R apache:apache  /var/www/html/mediawiki/

Step12. Start the service

systemctl start httpd

Step13. Access via browser


Step14. Use the command and copy localsetting.php

scp /path-to/LocalSettings.php remote-server:/var/www/html/mediawiki

Step15. Access via browser



Please enter your comment!
Please enter your name here