How to Install MediaWiki on MXLinux Latest

MediaWiki is a free, open-source wiki software that powers some of the world's most popular sites like Wikipedia. It allows users to create and collaborate on wikis with ease. In this tutorial, we will be installing MediaWiki on MXLinux Latest.

Prerequisites

Before we begin, we need to ensure that the following requirements are met:

Step 1: Downloading MediaWiki

MediaWiki can be downloaded from their official website https://www.mediawiki.org/wiki/MediaWiki.

Download the latest stable version of MediaWiki, save it to your local machine, and extract it into the /var/www/html/ directory.

wget https://releases.wikimedia.org/mediawiki/1.36/mediawiki-1.36.2.tar.gz
sudo tar xvzf mediawiki-1.36.2.tar.gz -C /var/www/html/

Once extracted, rename the directory to mediawiki.

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

Step 2: Creating a Database

We need to create a MySQL database and user for our MediaWiki installation. Log in to your MySQL server with the following command:

sudo mysql -u root -p

Enter your MySQL root password when prompted. Once you are logged in, create a new database and a new user with the following commands:

CREATE DATABASE mediawiki;
GRANT ALL PRIVILEGES ON mediawiki.* TO 'mediawikiuser'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

Replace mediawikiuser and password with your desired values. Once you have created the database and user, exit the MySQL prompt:

exit

Step 3: Configuring MediaWiki

Navigate to the MediaWiki directory in your web browser.

http://localhost/mediawiki

You should see the MediaWiki installation page. Select your language, and then click the "Continue" button.

MediaWiki Installation Language Selection

On the next page, MediaWiki will check your server to make sure it meets the necessary requirements. If any requirements are not met, they will be highlighted in red. Make sure all the required extensions are enabled and click the "Continue" button.

MediaWiki Installation Environment Check

On the following page, enter the details for the database you created earlier. Leave the connection settings as their default values. Click the "Continue" button.

MediaWiki Installation Database Settings

On the next page, enter a name for your site and your email address. You can also enable or disable certain features on this page. Click the "Continue" button.

MediaWiki Installation Site Configuration

On the final page, MediaWiki will generate a LocalSettings.php file for you. You need to save this file to the root directory of your MediaWiki installation. Copy the entire contents of the page and save it to a file named LocalSettings.php.

sudo nano /var/www/html/mediawiki/LocalSettings.php

Paste the contents of the file into the editor, save and exit.

Step 4: Finishing the Installation

After saving the LocalSettings.php file, click the "Continue" button on the MediaWiki installation page to complete the installation.

You should now be redirected to the front page of your new MediaWiki site. Congratulations, you have successfully installed MediaWiki!

Conclusion

In this tutorial, we have covered the steps required to install MediaWiki on MXLinux Latest. Once you have completed this installation, you are ready to start building your own wiki site. Happy editing!

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!