How can we help?
Categories
< All Topics
Print

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

  1. Choose a Server: Opt for a suitable VM or dedicated server from ServerStadium based on your expected traffic and storage requirements.
  2. 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:

  1. Install Apache:

    sudo apt install apache2

  2. Install MySQL/MariaDB:

    sudo apt install mariadb-server
    sudo mysql_secure_installation

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

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

  2. Move MediaWiki:

    sudo mv mediawiki-1.35.2 /var/www/html/mediawiki

  3. Configure Apache:

    sudo nano /etc/apache2/sites-available/mediawiki.conf

    Add the necessary Apache virtual host configuration.

Step 4: Set Up MariaDB for MediaWiki

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

  1. Run the MediaWiki Installer by navigating to http://your_server_ip/mediawiki and follow the setup wizard.
  2. Configure MediaWiki by following the instructions provided by the installer.

Step 6: Finalizing and Testing

  1. Finalize Installation and ensure LocalSettings.php is in place.
  2. 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.

Table of Contents