SourceBans++ is a popular open-source administration system for game servers, created as a fork of the original SourceBans by SourceBans-Team. In this tutorial, we will guide you through the installation process of SourceBans++ on Elementary OS Latest.
Before installing SourceBans++, make sure that your system is up-to-date and that you have the necessary dependencies installed:
To download SourceBans++, go to the official website at https://sbpp.dev/ and click the "Download" button. Select the latest release and download the package to your computer.
After downloading the package, navigate to the directory where it was saved and extract it using the following command:
tar -xvf sourcebans++.tar.gz
Move the extracted files to your web server’s root directory. For example, if you are using Apache, move the files to the default webroot at /var/www/html/
using the following command:
sudo mv sourcebans++/ /var/www/html
Before you can use SourceBans++, you need to initialize a database for it. Follow these steps to create a new MySQL database:
Log in to MySQL using the following command:
sudo mysql -u root -p
Enter your MySQL root password when prompted. Once logged in, create a new database and user using the following commands:
CREATE DATABASE sbpp;
GRANT ALL PRIVILEGES ON sbpp.* TO 'sbppuser'@'localhost' IDENTIFIED BY 'sbpppassword';
Note: Replace sbppuser
and sbpppassword
with your desired username and password.
Exit the MySQL client using the following command:
EXIT;
SourceBans++ comes with a default configuration file called sbpp.config.php.dist
, which you need to customize to match your server configuration. To do this, follow these steps:
Rename the default configuration file using the following command:
sudo mv /var/www/html/sourcebans++/config/sbpp.config.php.dist /var/www/html/sourcebans++/config/sbpp.config.php
Open the configuration file for editing using your favorite text editor:
sudo nano /var/www/html/sourcebans++/config/sbpp.config.php
Scroll down to the MySQL configuration section and update the values with the ones you created in Step 4:
'db' => [
'host' => 'localhost',
'port' => 3306,
'username' => 'sbppuser',
'password' => 'sbpppassword',
'name' => 'sbpp',
'charset' => 'utf8mb4'
],
Note: Replace sbppuser
and sbpppassword
with your MySQL username and password respectively.
Save and close the file.
To ensure that SourceBans++ can write to its own files and directories, you need to give the web server permission to access them. To do this, run the following commands:
sudo chown -R www-data:www-data /var/www/html/sourcebans++
sudo chmod -R 755 /var/www/html/sourcebans++
Finally, go to your web browser and enter your domain name or IP address followed by /sourcebans++/install
. For example, if your server's IP address is 192.168.0.2
, type http://192.168.0.2/sourcebans++/install
.
The installation wizard will guide you through the final steps of setting up the web interface for your SourceBans++ installation.
You have now successfully installed SourceBans++ on your Elementary OS Latest server. You can now use it to administer your game server and manage bans and other administrative tasks.
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!