Hello,
I have already installed the previous version of SourceBans these and I've never had a problem there but I confess that I mess ....
The Web server and games are on the same machine.
The following directories are chmod 777:
demos
themes_c,
images/games,
images/maps
Chmod 666 or 777 :
config.php
I created the database >> sourcebans.
My databases.cfg:
Code:
"Databases"
{
"driver_default" "mysql"
// When specifying "host", you may use an IP address, a hostname, or a socket file path
"sourcebans"
{
"driver" "default" // or "driver" "mysql"
"host" "localhost"
"database" "sourcebans"
"user" "my_user_full_access"
"pass" "my_pass"
//"timeout" "0"
"port" "3306"
}
"default"
{
"driver" "default"
"host" "localhost"
"database" "sourcemod"
"user" "root"
"pass" ""
//"timeout" "0"
//"port" "0"
}
"storage-local"
{
"driver" "sqlite"
"database" "sourcemod-local"
}
"clientprefs"
{
"driver" "sqlite"
"host" "localhost"
"database" "clientprefs-sqlite"
"user" "root"
"pass" ""
//"timeout" "0"
//"port" "0"
}
}
sourcebans.cfg:
Code:
/**
* sourcebans.cfg
*
* This file contains settings for the SourceBans Source Server Plugin
* @author SteamFriends Development Team
* @version 0.0.0.$Rev: 74 $
* @copyright SteamFriends (www.steamfriends.com)
* @package SourceBans
*/
"SourceBans"
{
"Config"
{
// Website address to tell where the player to go for unban, etc
"Website" "http://192.168.1.32/ban/"
// Allow or disallow admins access to addban command
"Addban" "1"
// Allow or disallow admins access to unban command
"Unban" "1"
// The Tableprefix you set while installing the webpanel. (default: "sb")
"DatabasePrefix" "sb"
// How many seconds to wait before retrying when a players ban fails to be checked. Min = 15.0 Max = 60.0
"RetryTime" "45.0"
// How often should we process the failed ban queue in minutes
"ProcessQueueTime" "5"
// Should the plugin automaticaly add the server to sourcebans
// (servers without -ip being set on startup need this set to 0)
"AutoAddServer" "0"
// Enable backing up config files after getting admins from database (1 = enabled, 0 = disabled)
"BackupConfigs" "1"
// Enable admin part of the plugin (1 = enabled, 0 = disabled)
"EnableAdmins" "1"
// Require the admin to login once into website
"RequireSiteLogin" "0"
// This is the ID of this server (Check in the admin panel -> servers to find the ID of this server)
"ServerID" "-1"
}
/*
* Generic menu options for if a reason isn't supplied in a ban
* Without a supplied reason the ban will never be written to the database
*/
"BanReasons"
{
"Hacking" "Hack"
"Exploit" "Exploit map/serveur"
"TK" "TK"
"TF" "Flash Team"
"CommSpam" "Spam Mic/Chat"
"BadSpray" "Spray interdit"
"BadLang" "Language interdit"
"BadName" "Pseudo interdit"
"IgnoreAdmin" "Ignore conseils admin"
"Stacking" "empilement joueurs"
"Own Reason" "Autre raison"
}
/*
* Submenu options for when "Hacking" is selected
* If "Hacking" is removed from the menu above this will not be accessable
*/
"HackingReasons"
{
"Aimbot" "Aimbot"
"Antirecoil" "Anti Recul"
"Wallhack" "Wallhack"
"Spinhack" "Spinhack"
"Speedhack" "Speedhack"
"Multi-Hack" "Multi-Hack"
"No Smoke" "travers fumi"
"No Flash" "Anti-flash"
}
}
I added the server groups for Web Admin Staff and Admins permissions for Server Admin permissions (Root Access and immunity 100)
config.php
PHP Code:
<?php
/**
* config.php
*
* This file contains all of the configuration for the db
* that will
* @author SteamFriends Development Team
* @version 1.0.0
* @copyright SteamFriends (www.SteamFriends.com)
* @package SourceBans
*/
if(!defined('IN_SB')){echo 'You should not be here. Only follow links!';die();}
define('DB_HOST', 'localhost'); // The host/ip to your SQL server
define('DB_USER', 'my_user_full_access'); // The username to connect with
define('DB_PASS', 'my_pass'); // The password
define('DB_NAME', 'sourcebans'); // Database name
define('DB_PREFIX', 'sb'); // The table prefix for SourceBans
define('DB_PORT','3306'); // The SQL port (Default: 3306)
//define('DEVELOPER_MODE', true); // Use if you want to show debugmessages
//define('SB_MEM', '128M'); // Override php memory limit, if isn't enough (Banlist is just a blank page)
?>
All data are in the database and when I add a group, I have no error ...
I have no error in the logs folder of SourceMod.
SourceMod: 1.4.6 :
sm plugins list
plugin_print :
Apache2 (via apt-get):
php 5.3.3.7 :
Debian Squeeze X64
Line command to launch server :
Code:
./srcds_run -game left4dead2 +maxplayers 8 +ip 192.168.1.32
admin_groups.cfg and admins.cfg is empty....
If I modify a group, the command is executed sm_rehash on the server:
Quote:
2:09:25 L 09/08/2012 - 22:09:27: rcon from "192.168.1.32:40120": command "sm_rehash"
"ServerID" "-1" or "ServerID" "1" >> 1 = ID in webpanel
The game server has been restarted.
Disable FireWall for test.
For CSSource, no problem SourceBans correctly generates the files against with L4D2, no .... I do not think the problem comes from me after multiple tests on different dedicated servers.
Tested with 1.4.9 and 1.4.10.
Thanks for help.