Raised This Month: $ Target: $400
 0% 

Release Legacy SourceBans 1.4.11 (Updated 2014/02/17)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Chaos Llama
Senior Member
Join Date: Jul 2006
Old 04-07-2008 , 20:44   Re: SourceBans (1.0.0 RC1d)
#1

Here's what i have in my databases.cfg file (modified to remove database username, password and name):

Quote:
"Databases"
{
"driver_default" "mysql"

"sourcebans"
{
"driver" "mysql"
"host" "69.57.183.122"
"database" "xxxx"
"user" "xxxx"
"pass" "xxxxxxxxxxxxxxxxx"
//"timeout" "0"
"port" "3306"
}
}
I get an error message before too and it complains about sqlite not being installed (because i deleted the ext so that only mysql is loaded).

I noticed in my scripting directory, i have admin-sql-threaded and admin-sql-prefetch. Should either of these be installed in plugins and if so which one causes the least amount of connections to the database server?

Last edited by Chaos Llama; 04-07-2008 at 20:55.
Chaos Llama is offline
Chaos Llama
Senior Member
Join Date: Jul 2006
Old 04-08-2008 , 14:42   Re: SourceBans (1.0.0 RC1d)
#2

I finally got it to work. I'm not exactly sure what fixed it as i tried a whole bunch of things. I enabled auto connect and fixed the table prefix in sourcebans.cfg
Chaos Llama is offline
Davethegreat
Senior Member
Join Date: Nov 2007
Old 04-08-2008 , 09:17   Re: SourceBans (1.0.0 RC1d)
#3

sorry wrong file in your
.htaccess the following line should be there.
AddHandler application/x-httpd-php .php .php5
Davethegreat is offline
Send a message via AIM to Davethegreat
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 04-08-2008 , 09:46   Re: SourceBans (1.0.0 RC1d)
#4

@Chaos Llama: an ext only gets loaded if a plugin actually uses it, so there's no use in deleting the file. And no, you don't need any of the admin-sql plugins, only admin-flatfile.

@Sir Tom: http://www.php.net/date_create clearly says that date_create is a PHP >= 5.1.0 function, so if your installation says it doesn't recognize that function there's definitely something wrong with your PHP settings.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
0815*Sir Tom
Junior Member
Join Date: Nov 2004
Old 04-09-2008 , 03:53   Re: SourceBans (1.0.0 RC1d)
#5

Quote:
Originally Posted by DJ Tsunami View Post
@Sir Tom: http://www.php.net/date_create clearly says that date_create is a PHP >= 5.1.0 function, so if your installation says it doesn't recognize that function there's definitely something wrong with your PHP settings.
Ok. I'm using 5.1.2 and as your link is saying this:

Quote:
07-Mar-2007 02:05
date_create and other DateTime related functions are included by default only in PHP versions equal and greater than 5.2.

In PHP 5.1.2 this functionality is marked to be experimental and has to be enabled at compile time.
It isn't included in my PHP setup, I would need to recompile my PHP with option "on" for this function, called experimental by PHP "experts"?!

Ok, thanks for the support, I will not risk an "unstable" system, regarding all other applications running at our webserver.
__________________
0815*Sir Tom is offline
Davethegreat
Senior Member
Join Date: Nov 2007
Old 04-08-2008 , 09:55   Re: SourceBans (1.0.0 RC1d)
#6

That command in your .htaccess i gave you should fix it^^
Davethegreat is offline
Send a message via AIM to Davethegreat
zerak
Senior Member
Join Date: Feb 2008
Old 04-08-2008 , 13:06   Re: SourceBans (1.0.0 RC1d)
#7

Chaos Llama used debug and tell us the error you are getting with this database.cfg (should not be the same error as previously) and tell us if you run the server behind NAT/PAT (ex of the most common: 192.168.0.XXX)
zerak is offline
Davethegreat
Senior Member
Join Date: Nov 2007
Old 04-08-2008 , 13:24   Re: SourceBans (1.0.0 RC1d)
#8

Or 10.*.*.* in professional hosting
Davethegreat is offline
Send a message via AIM to Davethegreat
zerak
Senior Member
Join Date: Feb 2008
Old 04-08-2008 , 14:03   Re: SourceBans (1.0.0 RC1d)
#9

Cool never thought I was professional

One common problem (at least for us, and I keep forgetting it) is that the query use hostip which is the ip inside your local net that is behind NAT/PAT and hence i made the patch a couple of pages back where you can set it to use the ip specified (an if case that removes the overwritting with hostip).
zerak is offline
Davethegreat
Senior Member
Join Date: Nov 2007
Old 04-08-2008 , 14:15   Re: SourceBans (1.0.0 RC1d)
#10

xD, yeah 10, is usually used in companys and 192 in homes. But I myself have done the same zerak
Davethegreat is offline
Send a message via AIM to Davethegreat
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode