How to Install SourceBans++ on Fedora Server Latest

SourceBans++ is a powerful and versatile open-source management tool for gameservers. It allows server administrators to manage, monitor, and control their game servers better with a web-based interface.

Here are the step-by-step instructions to install SourceBans++ on your Fedora Server:

Step 1: Install Required Dependencies

Before we proceed with SourceBans++ installation, we need to install some dependencies required for it to run correctly. Open a terminal and run the following command:

sudo dnf install mariadb mariadb-server httpd mod_ssl php php-mysqlnd phpMyAdmin -y

This command will install the Apache webserver, MySQL database server, and the required PHP modules.

Step 2: Install SourceBans++

The official SourceBans++ release is only available in the zip file format, so first, we need to download the latest release from their website.

To download the latest version, use the following command:

sudo wget https://github.com/sbpp/sourcebans-pp/releases/latest/download/sourcebans-pp.zip -O sourcebans-pp.zip

Once the download is complete, we need to extract the contents of the zip file to the Apache document root directory /var/www/html.

sudo unzip sourcebans-pp.zip -d /var/www/html

Step 3: Create Database and User

Before we continue, we need to create a database and database user for SourceBans++. To create a new database named 'sourcebans', use the following command:

sudo mysql -u root -p -e "CREATE DATABASE sourcebans;"

Next, create a new user named 'sbppuser' with a strong password, and grant it all permissions to the 'sourcebans' database:

sudo mysql -u root -p -e "CREATE USER 'sbppuser'@'localhost' IDENTIFIED BY 'strong_password';GRANT ALL PRIVILEGES ON sourcebans.* TO 'sbppuser'@'localhost';FLUSH PRIVILEGES;"

Step 4: Configuration

The next step is to configure SourceBans++ to use your newly-created database. To do that, open the configuration file '/var/www/html/sourcebans-pp/config.php' in a text editor and update the following details:

$config['Database']['type'] = 'mysql';
$config['Database']['hostname'] = 'localhost';
$config['Database']['port'] = 3306;
$config['Database']['username'] = 'sbppuser';
$config['Database']['password'] = 'strong_password';
$config['Database']['database'] = 'sourcebans';

Make sure to replace the database username and password with the details you created in Step 3.

Step 5: Set Permissions

To ensure that Apache web server can access the necessary directories and files, we need to set the appropriate file and directory permissions. Use the following command to set the correct permissions:

sudo chown -R apache:apache /var/www/html/sourcebans-pp/
sudo chmod -R 755 /var/www/html/sourcebans-pp/

Step 6: Start Services

Finally, we need to start the Apache and MySQL services:

sudo systemctl start httpd
sudo systemctl start mariadb

We also need to enable the services to start at boot:

sudo systemctl enable httpd
sudo systemctl enable mariadb

Step 7: Access SourceBans++

Once you have followed all the steps mentioned above, you can access SourceBans++ web interface by navigating to your server's IP address or hostname in your web browser:

https://your-server-ip/sourcebans/

Conclusion

In this tutorial, we have successfully installed SourceBans++ on Fedora Server. We also learned how to create a database and user, set up configuration, and set permissions for Apache web server.

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!