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

mysql_secure_installation

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;
exit;

Step7. Install/Configure PHP repository

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
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
wget https://releases.wikimedia.org/mediawiki/1.33/mediawiki-1.33.1.tar.gz

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

http://server_ip/mediawiki

Step14. Use the command and copy localsetting.php

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

Step15. Access via browser

http://server_ip/mediawiki

LEAVE A REPLY

Please enter your comment!
Please enter your name here