How to install SourceBans++ on Fedora CoreOS Latest

SourceBans++ is a web-based ban management system for game servers. It is used to track and manage player bans, administer server plugins, and provide administrators with powerful tools for controlling their game servers. In this tutorial, we will guide you through the steps required to install SourceBans++ on Fedora CoreOS Latest.

Prerequisites

Before you can install SourceBans++, you will need the following:

Step 1: Install required dependencies

The first step is to install the necessary dependencies for SourceBans++. You can do this by running the following commands:

sudo dnf install -y git gzip php php-fpm php-gd php-mysqlnd php-xml mariadb mariadb-server

This will install Git, PHP and its associated modules, MySQL or MariaDB server and their corresponding CLI client.

Step 2: Install SourceBans++

Once the dependencies are installed, you can proceed to install SourceBans++ from the official GitHub repository. You can do this by running the following commands:

sudo git clone https://github.com/sbpp/sourcebans-pp.git /var/www/sourcebans
sudo chown -R apache:apache /var/www/sourcebans/

This will clone the SourceBans++ repository to the /var/www/sourcebans directory and set the appropriate permissions.

Step 3: Configure database

The next step is to create a new MySQL or MariaDB database and user for SourceBans++. You can do this by running the following commands:

sudo mysql_secure_installation
sudo mysql -u root -p
MariaDB> CREATE DATABASE sourcebans;
MariaDB> GRANT ALL ON sourcebans.* TO 'sbpp'@'localhost' IDENTIFIED BY 'your_password';
MariaDB> FLUSH PRIVILEGES;
MariaDB> quit;

Replace your_password with your desired password for the sbpp user.

Step 4: Configure SourceBans++

Once the database is set up, you need to configure SourceBans++. Open the /var/www/sourcebans/config/config.php file in your favorite text editor and update the following lines:

$config['db_hostname'] = 'localhost';
$config['db_username'] = 'sbpp';
$config['db_password'] = 'your_password';
$config['db_name'] = 'sourcebans';

Ensure that the database credentials match those you created in the previous step.

Step 5: Create a virtual host

The final step is to create a virtual host to serve SourceBans++. You can do this by creating a new file /etc/httpd/conf.d/sourcebans.conf and adding the following configuration:

<VirtualHost *:80>
  ServerName sourcebans.example.com
  DocumentRoot /var/www/sourcebans
  ErrorLog /var/log/httpd/sourcebans_error.log
  CustomLog /var/log/httpd/sourcebans_access.log combined
  <Directory "/var/www/sourcebans">
    AllowOverride All
    Require all granted
  </Directory>
</VirtualHost>

Replace sourcebans.example.com with your desired server name. Save the file and restart your web server:

sudo systemctl restart httpd

Conclusion

You have successfully installed and configured SourceBans++ on Fedora CoreOS. You should now be able to navigate to the server URL in your browser and begin using the system. If you encounter any difficulty, visit the SourceBans++ documentation at https://sbpp.dev/docs/ for additional assistance.

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!