Installing MediaWiki on Linux Mint

MediaWiki is a widely used free and open-source wiki engine software. It is popularly known for powering the Wikipedia website. If you want to create your own wiki website, MediaWiki is a great choice. This tutorial will explain how to install MediaWiki on Linux Mint.

Prerequisites

Before starting with the installation, you need to ensure that your system has the following prerequisites:

Installation

The following steps will guide you through the MediaWiki installation process:

Step 1: Download MediaWiki

First, download the MediaWiki package from its official website. Open a terminal, navigate to the /var/www/html directory, and download the package:

sudo wget https://releases.wikimedia.org/mediawiki/1.36/mediawiki-1.36.0.tar.gz

Step 2: Extract MediaWiki

Once the package is downloaded, extract it to the /var/www/html directory:

sudo tar xvzf mediawiki-1.36.0.tar.gz

Step 3: Configure the MediaWiki Directory Permissions

After extracting the package, MediaWiki's files and directories are owned by the root user. You need to change the ownership to the Apache user www-data:

sudo chown -R www-data:www-data /var/www/html/mediawiki-1.36.0/

Step 4: Create a Database for MediaWiki

You need to create a database for your MediaWiki installation. Log in to your MySQL or MariaDB server using the root account:

sudo mysql -u root -p

Enter the root password when prompted. Then, create a new database for your MediaWiki installation:

CREATE DATABASE mediawiki_db CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

You can replace mediawiki_db with your preferred database name.

Next, create a database user and grant permission to access the database:

CREATE USER 'mediawiki_user'@'localhost' IDENTIFIED BY 'YourPassword';
GRANT ALL PRIVILEGES ON mediawiki_db.* TO 'mediawiki_user'@'localhost';
FLUSH PRIVILEGES;

Replace YourPassword with your preferred password.

Step 5: Configure MediaWiki

You need to configure MediaWiki before you can use it. Open your web browser and navigate to http://localhost/mediawiki-1.36.0/. You will see a configuration page. Click the "Set up the wiki" button to begin the configuration process.

MediaWiki configuration page screenshot

On the next page, select your language and click the "Continue" button.

MediaWiki language selection screenshot

On the database settings page, enter your database details, such as database name, database username, and password that you created in step 4. Leave the rest of the fields with default values and click the "Continue" button.

MediaWiki database settings screenshot

On the server settings page, leave the default values and click the "Continue" button.

MediaWiki server settings screenshot

On the account creation page, enter your administrator account details and click the "Continue" button.

MediaWiki account creation screenshot

Finally, on the installation complete page, click the "Continue to your wiki" button.

MediaWiki installation complete screenshot

Congratulations! You have successfully installed MediaWiki on your Linux Mint system.

Conclusion

In this guide, we have explained how to install MediaWiki on Linux Mint. Now that you have MediaWiki installed, you can customize and use it to create your own wiki website. Enjoy!

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!