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