In this tutorial, we will guide you on how to install MediaWiki on EndeavourOS. MediaWiki is an open-source content management system (CMS), which is widely used to create and manage wikis. It is the software that powers the famous website, Wikipedia. EndeavourOS, on the other hand, is a lightweight Arch-based Linux distribution that offers users a user-friendly and customizable experience.
Before we start installing MediaWiki, we need to ensure that our system meets the following requirements:
The first step is to download the latest version of MediaWiki from the official website. You can do this by visiting the following link on your browser: https://www.mediawiki.org/wiki/MediaWiki .
Once the download is complete, navigate to the directory where you saved the file and unpack it into your web server's document root. For Apache, the document root is typically "/var/www/html". For Nginx, it is "/usr/share/nginx/html".
$ tar -zxvf mediawiki-1.36.0.tar.gz
$ sudo mv mediawiki-1.36.0 /var/www/html/mediawiki
Note: Make sure to replace "mediawiki-1.36.0" with the actual name of the file that you downloaded.
The next step is to configure MediaWiki by creating a configuration file. MediaWiki provides a sample configuration file, which we need to copy and modify.
$ cd /var/www/html/mediawiki
$ sudo cp LocalSettings.php{.dist,}
$ sudo nano LocalSettings.php
This will open the configuration file in the nano text editor. Look for the following section:
#######################################
## Database settings
#######################################
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "my_wiki";
$wgDBuser = "wikiuser";
$wgDBpassword = "password";
Replace the database details with your MariaDB database details that you created earlier.
#######################################
## Database settings
#######################################
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "mediawiki_db";
$wgDBuser = "mediawiki_user";
$wgDBpassword = "password";
Save the changes and exit nano.
The final step is to launch the MediaWiki installation script on your web browser. Simply enter the following URL on your browser's address bar:
http://localhost/mediawiki/
You will be presented with the MediaWiki installation page. Follow the instructions on the page to complete the installation process.
Once the installation is complete, you will be redirected to the MediaWiki homepage.
Congratulations! You have successfully installed MediaWiki on your EndeavourOS machine.
In this tutorial, we have explained how to install MediaWiki on EndeavourOS. We hope that this tutorial was helpful to you. If you have any questions or feedback, feel free to leave a comment below.
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!