SourceBans++ is a web-based ban and kick management system for game servers, designed to be easy to use and install. This tutorial will guide you through the installation process of SourceBans++ on Linux Mint.
Before starting, make sure your system meets the following requirements:
Log in to your Linux Mint system and open the terminal.
Install the required packages:
sudo apt-get update
sudo apt-get install apache2 php7.2 libapache2-mod-php7.2 php7.2-mysql mysql-server phpmyadmin
During the installation, you will be prompted to set a MySQL root password. Remember this password, as you will need it later.
Once the packages are installed, open the Apache configuration file:
sudo nano /etc/apache2/apache2.conf
Add the following lines to the end of the file:
# SourceBans++ Configuration
Alias /sbpp /var/www/html/sourcebans
<Directory /var/www/html/sourcebans>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Save and close the file.
Download the latest version of SourceBans++ from https://sbpp.dev/ and unzip it in the /var/www/html/
directory using the following command:
sudo wget https://github.com/sbpp/sourcebans-pp/archive/master.zip
sudo unzip master.zip -d /var/www/html/
sudo mv /var/www/html/sourcebans-pp-master /var/www/html/sourcebans
Create a database and a user for SourceBans++ by running the following commands:
mysql -u root -p
> CREATE DATABASE sourcebans;
> CREATE USER 'sourcebans'@'localhost' IDENTIFIED BY 'password';
> GRANT ALL PRIVILEGES ON sourcebans.* TO 'sourcebans'@'localhost';
> FLUSH PRIVILEGES;
> EXIT;
Replace 'password' with a secure password of your choice.
Rename the config/database.cfg.example.php
to config/database.cfg.php
and edit the file using your preferred text editor, for example:
sudo nano /var/www/html/sourcebans/config/database.cfg.php
Update the following variables with the database details:
define('DB_HOST', 'localhost'); // Database host
define('DB_PORT', 3306); // Database port
define('DB_NAME', 'sourcebans');// Database name
define('DB_USER', 'sourcebans');// Database user
define('DB_PASS', 'password'); // Database password
Save and close the file.
Set the correct permissions for the cache
and profile_pictures
directories:
cd /var/www/html/sourcebans/
sudo chmod -R 777 cache/ profile_pictures/
Restart the Apache web server to apply the changes:
sudo systemctl restart apache2
Access the SourceBans++ web interface by navigating to http://localhost/sbpp
in your web browser.
Congratulations, you have successfully installed SourceBans++ on Linux Mint! From here, you can create new users, servers, and start banning/kicking players on your game servers.
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!