How to Install SourceBans++ on Ubuntu Server Latest

SourceBans++ is a popular web-based control panel used for managing game servers. In this tutorial, we will guide you through the simple steps to install SourceBans++ on the latest Ubuntu server.

Prerequisites

Before we begin the installation process, ensure that the following requirements are met:

Step 1: Download SourceBans++

To download SourceBans++, open the terminal on your Ubuntu server and run the following command:

cd ~
wget https://github.com/sbpp/sourcebans-pp/archive/master.zip

Step 2: Unzip and Move Files

Once the download is complete, extract the zip file using the following command:

unzip master.zip

Next, move the extracted files to the /var/www/html folder:

sudo mv sourcebans-pp-master/* /var/www/html/

Step 3: Configure MySQL Database

Create a new MySQL database for SourceBans++. You can do this by running the following command:

sudo mysql -u root -p

Enter your MySQL root password when prompted, then enter the following SQL commands to create the new database:

CREATE DATABASE sbpp;
GRANT ALL ON sbpp.* TO 'sbppuser'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

Replace "password" with a strong password you choose for your SourceBans++ database user.

Step 4: Configure Apache Server

Edit the Apache web server configuration file 000-default.conf:

sudo nano /etc/apache2/sites-available/000-default.conf

Add the following lines to the <VirtualHost *:80> block:

DocumentRoot /var/www/html/public
<Directory /var/www/html/public>
    AllowOverride All
</Directory>

Save and close the file.

Step 5: Configure SourceBans++

Rename the file .env.example to .env:

cd /var/www/html
mv .env.example .env

Open the .env file and edit the following lines to match your MySQL database settings:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=sbpp
DB_USERNAME=sbppuser
DB_PASSWORD=password

Remember to replace "password" with the password you chose for your MySQL user. Save and close the file.

Step 6: Install Dependencies and Migrate Database

Install the necessary dependencies for SourceBans++:

sudo apt-get install php7.4-mysql php7.4-mbstring php7.4-zip php7.4-bcmath php7.4-curl

Migrate the database by running the Artisan migration command:

php artisan migrate --force

Step 7: Set Permissions

Set the appropriate permissions for the SourceBans++ directories:

sudo chown -R www-data:www-data /var/www/html
sudo chmod -R 755 /var/www/html/storage

Step 8: Restart Apache Server

Finally, restart the Apache web server for changes to take effect:

sudo systemctl restart apache2

Conclusion

Congratulations! You have successfully installed SourceBans++ on your Ubuntu server. You can access the control panel by accessing your server's IP address in a web browser. For example, http://your-server-ip-address/.

Feel free to customize your SourceBans++ installation by adding your preferred game servers, users, and permissions.

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!