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
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"
"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
Quote:
01 "Basic Info Triggers" (1.4.6) by AlliedModders LLC
02 "Fun Commands" (1.4.6) by AlliedModders LLC
03 "Sound Commands" (1.4.6) by AlliedModders LLC
04 "Basic Votes" (1.4.6) by AlliedModders LLC
05 "Player Commands" (1.4.6) by AlliedModders LLC
06 "Basic Commands" (1.4.6) by AlliedModders LLC
07 "Reserved Slots" (1.4.6) by AlliedModders LLC
08 "Client Preferences" (1.4.6) by AlliedModders LLC
09 "SourceBans" (1.4.9) by SourceBans Development Team
10 "Basic Comm Control" (1.4.6) by AlliedModders LLC
11 "Admin Menu" (1.4.6) by AlliedModders LLC
12 "Anti-Flood" (1.4.6) by AlliedModders LLC
13 "Admin Help" (1.4.6) by AlliedModders LLC
14 "Admin File Reader" (1.4.6) by AlliedModders LLC
15 "Fun Votes" (1.4.6) by AlliedModders LLC
16 "Basic Chat" (1.4.6) by AlliedModders LLC
17 Disabled: "Nextmap" (1.4.6) by AlliedModders LLC
|
plugin_print :
Apache2 (via apt-get):
Quote:
apache2 -v
Server version: Apache/2.2.16 (Debian)
Server built: Apr 1 2012 07:148
|
php 5.3.3.7 :
Quote:
php -v
PHP 5.3.3-7+squeeze14 with Suhosin-Patch (cli) (built: Aug 6 2012 14:18:06)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
|
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....
The game server has been restarted
Thanks for help