How to Install Mediawiki on a CentOS Server with Screenshots_MySQL
CentOS
MediaWiki is a free software open source wiki package written in PHP, originally for use on Wikipedia.The software is optimized to correctly and efficiently handle projects of all sizes, including the largest wikis, which can have terabytes of content and hundreds of thousands of hits per second.Because Wikipedia is one of the world’s largest websites, achieving scalability through multiple layers of caching and database replication has also been a major concern for developers. Wikipedia and other Wikimedia projects continue to define a large part of the requirement set for MediaWiki. I’m describing about the installation of mediawiki on a CentOS server.
Download mediawiki
Download mediawiki into /usr/local/src
#cd /usr/local/src
#wget http://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.3.tar.gz
Extract mediawiki and move into DocumentRoot
#tar xvzf mediawiki-1.22.3.tar.gz
#mv mediawiki-1.22.3 /var/www/html/mediawiki
Create Database and User in mysql
Enter into mysql as root
You need to enter mysql root password to enter in to mysql.
#mysql -u root -p
Enter password:
You will get mysql command terminal.We need to create Database, User for mediawiki.
I’m going to set database name, username , and password as ‘mediawiki’.You can change it as per your wish.
Create database
mysql> create database mediawiki;
Create User
mysql> create user mediawiki@localhost;
Set password for mysql user
mysql> set password for mediawiki@localhost = password (‘mediawiki’);
Allow Grant privileges to the user
mysql>GRANT ALL PRIVILEGES ON mediawiki.* to mediawiki@localhost identified by ‘mediawiki’;
Flush privileges
mysql> flush privileges;
Now all the Activities in mysql is completed.You can simply logout from the mysql using quit
mysql>quit;
Set Ownership and permission in DocumentRoot
We need to set the Owner and group of mediawiki as apache.Set 755 permission to the /var/www/html/mediawiki folder
#chown -R apache:apache /var/www/html/mediawiki
#chmod -R 755 /var/www /html/mediawiki
Installation of mediawiki from the browser.
You can start installation of mediawiki via browse http://Public_IP/mediawiki
You will get a page like localsettings.php not found.Click on the setup the wiki
There is a probability of get a blank page .It is due to the missing of pfp-dom.You can install it through the following steps.
#yum install php-xml
#service httpd restart
Now the problem will solve and you will get a language setting page.You can set language as per your wish
Click Continue, You will get a Welcome page of wediawiki.
Again Click continue .You will get Connect to database page.We are using mysql as database.So mark mysql and fillup our database details.
Click continue. You will get a database settings page.You don’t need to change anything on this page.
Click Continue.You will get a page to Name the mediawiki, and Setup the admin account. Then simply click continue on next two pages.You will get a installation complete page.
Now you will get a LocalSettings.php file.You need to put that file into /var/www/html/mediawiki.Installation complete and you can enter into your mediawiki now .
You are successfully installed mediawiki now.You can use meidawiki to share valuable information to the world.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

This article explores optimizing MySQL memory usage in Docker. It discusses monitoring techniques (Docker stats, Performance Schema, external tools) and configuration strategies. These include Docker memory limits, swapping, and cgroups, alongside

This article addresses MySQL's "unable to open shared library" error. The issue stems from MySQL's inability to locate necessary shared libraries (.so/.dll files). Solutions involve verifying library installation via the system's package m

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

This article compares installing MySQL on Linux directly versus using Podman containers, with/without phpMyAdmin. It details installation steps for each method, emphasizing Podman's advantages in isolation, portability, and reproducibility, but also

This article provides a comprehensive overview of SQLite, a self-contained, serverless relational database. It details SQLite's advantages (simplicity, portability, ease of use) and disadvantages (concurrency limitations, scalability challenges). C

This guide demonstrates installing and managing multiple MySQL versions on macOS using Homebrew. It emphasizes using Homebrew to isolate installations, preventing conflicts. The article details installation, starting/stopping services, and best pra

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]
