How to Install SourceBans++ on Linux Mint
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.
Requirements
Before starting, make sure your system meets the following requirements:
- Linux Mint Latest
- Apache web server
- PHP 7.2 or higher
- MySQL or MariaDB database
Installation
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 phpmyadminDuring 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.confAdd 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/sourcebansCreate 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.phptoconfig/database.cfg.phpand edit the file using your preferred text editor, for example:sudo nano /var/www/html/sourcebans/config/database.cfg.phpUpdate 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 passwordSave and close the file.
Set the correct permissions for the
cacheandprofile_picturesdirectories:cd /var/www/html/sourcebans/ sudo chmod -R 777 cache/ profile_pictures/Restart the Apache web server to apply the changes:
sudo systemctl restart apache2Access the SourceBans++ web interface by navigating to
http://localhost/sbppin 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.