Setting Up MediaWiki on ServerStadium
Introduction
Hosting MediaWiki on ServerStadium’s VMs or dedicated servers (VM Pricing, Dedicated Servers) offers an excellent platform for building a collaborative knowledge base or documentation site. This guide details the setup process for MediaWiki, providing a robust and flexible solution for content management.
Setting Up MediaWiki on ServerStadium
Prerequisites
- A ServerStadium VM or dedicated server.
- Basic Linux server administration knowledge.
Step 1: Select and Prepare Your ServerStadium Environment
- Choose a Server: Opt for a suitable VM or dedicated server from ServerStadium based on your expected traffic and storage requirements.
- Server Setup: Update and upgrade your server:
sudo apt update
sudo apt upgrade
Step 2: Install LAMP Stack
MediaWiki requires a LAMP (Linux, Apache, MySQL/MariaDB, PHP) stack:
- Install Apache:
sudo apt install apache2
- Install MySQL/MariaDB:
sudo apt install mariadb-server
sudo mysql_secure_installation - Install PHP and Extensions:
sudo apt install php php-cli php-mysql php-gd php-xml php-mbstring php-json
Step 3: Install and Configure MediaWiki
- Download MediaWiki:
wget <a target="_new" rel="noopener">https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.2.tar.gz</a>
tar -xvzf mediawiki-*.tar.gz - Move MediaWiki:
sudo mv mediawiki-1.35.2 /var/www/html/mediawiki
- Configure Apache:
sudo nano /etc/apache2/sites-available/mediawiki.conf
Add the necessary Apache virtual host configuration.
Step 4: Set Up MariaDB for MediaWiki
- Create a Database:
sudo mysql -u root -p
CREATE DATABASE mediawiki;
GRANT ALL ON mediawiki.* TO 'wikiuser'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;
Step 5: Install MediaWiki
- Run the MediaWiki Installer by navigating to
http://your_server_ip/mediawiki
and follow the setup wizard. - Configure MediaWiki by following the instructions provided by the installer.
Step 6: Finalizing and Testing
- Finalize Installation and ensure
LocalSettings.php
is in place. - Test Your MediaWiki installation by accessing your new site.
Conclusion
Your MediaWiki site is now operational on a ServerStadium server, providing a powerful platform for your collaborative knowledge base or documentation site. For support and more information, visit our knowledge base or contact our support team.