Building a MediaWiki Knowledge Base
8/7/20Less than 1 minute
Building a MediaWiki Knowledge Base
1. Environment Setup
1.1 LAMP Stack
Installing MediaWiki requires a LAMP environment (Linux + Apache + MySQL + PHP). We'll use the Baota Linux Panel to make this painless. Life is too short to configure Apache conf files manually for the 100th time.

2. Download & Upload
2.1 Remote Access
Log in to your ECS server using Xshell and use Xftp for file transfer.
2.2 Download MediaWiki
You can download it locally or directly on the server:
wget https://releases.wikimedia.org/mediawiki/1.29/mediawiki-1.29.1.tar.gzUnzip it:
tar -zxv mediawiki-1.29.1.tar.gz2.3 Prepare Directory
Create a folder (e.g., old) under /www/wwwroot/default and move the unzipped files there.

2.4 Permissions
Grant permissions to the www user:
chown -R www /www/wwwroot/default2.5 Add Website
Add the site in Baota Panel.

3. Installation

3.1 Language
Set your preferred language.

3.2 Database
Select SQLite for a simpler setup if you don't expect massive traffic immediately.

4. Final Steps
Download the generated LocalSettings.php file and upload it to the root directory of your website. Boom, you have a Wiki!