MediaWiki - Installation
DISPLAYTITLE
Download Instructions
Update your server
Run the following command in Terminal:
sudo apt update && sudo apt upgrade -y
Verify PHP modules
Run the following command in Terminal:
sudo apt install php-intl php-xml php-mbstring php-json php-curl php-gd php-apcu -y
Download and unpack MediaWiki
Run the following command in Terminal:
cd /tmp wget https://releases.wikimedia.org/mediawiki/1.44/mediawiki-1.44.2.tar.gz tar -xvzf mediawiki-1.44.2.tar.gz sudo mv mediawiki-1.44.2 /var/www/html/mediawiki
Set permissions
Run the following command in Terminal:
sudo chown -R www-data:www-data /var/www/html/mediawiki sudo chmod -R 755 /var/www/html/mediawiki
Then run the following commands, replacing the variable with the user you log into the FTP Client:
sudo chown -R [FTP_USER]:www-data /var/www/html/mediawiki
Database Setup
- Open phpMyAdmin and navigate to User accounts and click Add user account.
- Setup an User name and a Password, and select Host name to Local. Write down the password you set.
- Under Database for user account, check Create database with same name and grant all privileges, and click Go.
- Open the created Database, navigate to Operations > Collation and switch it to mb4_unicode_ci.
Wiki Setup
Open your browser and go to:
https://your-domain.com/mediawiki
Language
Select english for both options and click continue.
Copyright and Terms
Click continue.
Connect to database
Insert the following data:
- Database name
- Database username
- Database password
Click continue.
Database settings
Click continue.
Name
- Set the Name of wiki
- In Project namespace, select Other and specify a namespace.
- Setup an Administrator account, and uncheck Share data about this installation with MediaWiki developers.
- Click Continue.
Options
- Select the following options: Authorized editors only and Creative Commons Attribution-ShareAlike
- Uncheck Enable outbound email
- Uncheck skins MinervaNeue, MonoBook, Timeless, and select Use this skin as default under Vector.
- Check all Special pages, Editors, Parser hooks and Media handlers
- Under Other, check MultimediaViewer.
- Clear Logo and Sidebar logo.
- Click Continue.
Install
Click Continue.
Click Continue again.
Upload LocalSettings.php
A file named LocalSettings.php will be downloaded. Upload that file to /var/www/html/mediawiki/.