How to Install SourceBans++ on Elementary OS Latest

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.

Prerequisites

Before installing SourceBans++, make sure that your system is up-to-date and that you have the necessary dependencies installed:

Step 1: Downloading SourceBans++

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.

Step 2: Extracting the Package

After downloading the package, navigate to the directory where it was saved and extract it using the following command:

tar -xvf sourcebans++.tar.gz

Step 3: Moving the Files

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

Step 4: Configuring MySQL

Before you can use SourceBans++, you need to initialize a database for it. Follow these steps to create a new MySQL database:

  1. Log in to MySQL using the following command:

    sudo mysql -u root -p
    
  2. 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.

  3. Exit the MySQL client using the following command:

    EXIT;
    

Step 5: Configuring SourceBans++

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:

  1. 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
    
  2. Open the configuration file for editing using your favorite text editor:

    sudo nano /var/www/html/sourcebans++/config/sbpp.config.php
    
  3. 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.

  4. Save and close the file.

Step 6: Setting Permissions

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++

Step 7: Installing the Web Interface

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.

Conclusion

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!