SourceBans++ is a global administration system for multiple Source based game servers where admins and bans can be added across more than one server.
If your web panel shows Error Connecting for your game server when it is actually online,
ask your web host to open UDP incoming from your game server port (usually 27015).
If either the RCON console, Admin Rehashing or Kick-It does not work on your web panel,
ask your web host to open TCP outgoing to your game server port (usually 27015).
Use sb_debug_connection.php, a small testing script to get more detailed debugging information. Open the php file and add your gameserver's ip and port as described in the comments.
You should always check beforehand, if your gameserver banned your webserver's ip with
listip in rcon. Remove it from the banned_ip.cfg and
removeip IP via rcon.
Most likely SourceMod's basebans.smx was still loaded when you installed SourceBans' game plugin. The game plugin automatically disables basebans.smx, but your server needs to be restarted for the "Ban player" option to come available.
Some hosters might disallow plugins to move files. Make sure the basebans.smx is in the plugins/disabled folder.
host_players_show 2 to your
server.cfg or any startup config file
.tplwith the translation
theme.conf.phpwhile following theme license outline
Before proceeding to ask for help, please have these files ready
error.log. For apache, it typically resides in
/var/log/apache2/. Check the location via
errors_%DATE%.log, located in
After you gather the necessary log files, join our Discord using the button below.
Your PHP configuration restricts SourceBans to a certain amount of memory.
When viewing the Banlist it tries to lookup the according country for the IP. This is done by loading a ~7MB database file into the memory.
There are several ways to solve this.
This is because, by default, the owner account is not assigned to any permission group.
Admin Settings, edit, and assign yourself to an admin group
Using a database query tool (PHPMyAdmin), goto
_settings table and modify
config.enablesteamlogin setting and set the value to
This is because PHP has encountered a fatal error and cannot show any more of the page.
To show the error message that PHP produced, you need to add the debug parameter to your URL. For example, if your current URL is http://www.sourcebans.net/index.php then you can add the debug parameter by changing the URL to http://www.sourcebans.net/index.php?debug=1
If your URL already has parameters, then add debug on the end, like this: http://www.sourcebans.net/index.php?p=home&debug=1
In most cases, the error message will be self explanatory, but if you need help, then post on our forums.
You forgot to add the "sourcebans" section to SourceMod's databases.cfg, as instructed in the installation.
Please go to http://your.sourcebans.install/index.php?p=admin&c=servers&o=dbsetup (replace your.sourcebans.install with your own URL) and add the "sourcebans" section to your databases.cfg.
If the error message reads "Can't connect to local MySQL server through socket", you need to find the "sourcebans" section in databases.cfg and change the value of "host" from "localhost" to the path of your mysql.sock file. If you don't know where mysql.sock is located, ask your gameserver host.
Otherwise, most likely your MySQL server does not allow incoming connections from your gameserver. To fix this, you can do either of the following:
GRANT ALL ON database.* TO 'username'@'ip';
You will have to replace "database" with your SourceBans database name, and "username" and "ip" with those mentioned in the error.
dbi.mysql.ext.dllon Windows) extension exists and check if it is loaded via
sm exts list
chmod u+x dbi.mysql.ext.so
zlib (Requires SSH):
apt-get install zlib1g
apt-get install lib32z1
yum install zlib.i686
zypper install libz1
zypper install libz1-32bit
ldd -d -r dbi.mysql.ext.soto look for missing dependencies, and use Google to look them up