php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#311681 - 10/12/06 01:44 AM Hosting being suspended due to sql errors :(
MossY Offline
Newbie

Registered: 10/12/06
Posts: 16
Help.... my host has shut me down for the following reason -

Quote:
Dear Customer,

There is a problem with your forum script;

| 2475 | blighty_forum | localhost | blighty_forum | Query | 156 | Sending data |
| 2488 | blighty_forum | localhost | blighty_forum | Query | 153 | Locked |
| 2518 | blighty_forum | localhost | blighty_forum | Query | 134 | Locked |
| 2584 | blighty_forum | localhost | blighty_forum | Query | 78 | Locked |


Your script is keeping database connections open and not closing them. The numbers 156, 153, 134, 78 are all times, in seconds that a process from your account is running. These should never be more than a few seconds.

After suspending your account these processes were killed. and the CPU usuage returned from 80% down to the usual 3%CPU usage. Had the MySQL services not been restarted the server would have crashed due to your script not functioning correctly.


any ideas/help.. PLEASE... running UBB Threads 6.??
_________________________
http://www.blighty-renegades.co.uk

Top
#311683 - 10/12/06 02:29 AM Re: Hosting being suspended due to sql errors :( [Re: MossY]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
do you enable persistent connections in the admin settings? Wich version you are running excactly?
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#311684 - 10/12/06 03:21 AM Re: Hosting being suspended due to sql errors :( [Re: Zarzal]
MossY Offline
Newbie

Registered: 10/12/06
Posts: 16
where is the enable persistant connections option?

i think it is 6.5 ... but i cant get in to it at the moment as its suspended frown
_________________________
http://www.blighty-renegades.co.uk

Top
#311691 - 10/12/06 01:18 PM Re: Hosting being suspended due to sql errors :( [Re: MossY]
Learner Offline
Newbie

Registered: 10/12/06
Posts: 14
DO NOT use pconnections. lol. In phps' mysqli this was drop because of the number of problems it caused. If you can code ask them to send you the error log for your domain and look through it, find the script/s and make sure the database connection closes. Maybe even upgrade the sql calls the mysqli as you can clean up resources faster

$mysqli = new mysqli("db_host","db_user","db_psswd","db");
$result = $mysqli->query(select your query here);
WHILE($row = $result->fetch_assoc()){
//work done with data sets here
}
$result->close();
$mysqli->close();

To some this might look odd, this is object oreiented php using mysqli. But the main thing to notice is the 2 objects I closed.

$result->close();
This cleans up all resources used to make the query. Ram, CPU time, all cleaned up

$mysqli->close();
Closes the database connection object.

If you can't code... Get a less anal host. Interserver.net has done me very good.

Top
#311697 - 10/12/06 06:00 PM Re: Hosting being suspended due to sql errors :( [Re: MossY]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
if you have FTP access go to your ubbthreads directory and then to includes. You find the config.inc.php

Open this file in your editor and look for:

$config['persistent'] = "";

This is the correct string for persistent connections off. If you have any other value in this string change it.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#311716 - 10/13/06 12:30 PM Re: Hosting being suspended due to sql errors :( [Re: Learner]
MossY Offline
Newbie

Registered: 10/12/06
Posts: 16
Originally Posted By: Learner
If you can't code... Get a less anal host. Interserver.net has done me very good.


lol... sounds like a plan... im a C man.. all this sql stuff is like VB to me smile
_________________________
http://www.blighty-renegades.co.uk

Top
#311717 - 10/13/06 12:47 PM Re: Hosting being suspended due to sql errors :( [Re: MossY]
MossY Offline
Newbie

Registered: 10/12/06
Posts: 16
this line isnt in my config frown

$config['persistent'] = "";

should it be.. can i just add it?
_________________________
http://www.blighty-renegades.co.uk

Top
#311719 - 10/13/06 04:15 PM Re: Hosting being suspended due to sql errors :( [Re: MossY]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
it should .... Sounds your config is modified in some way. Maybe thats the main source of your problem. Do you run 6.5.5 or less? any other version as 6.5.5 have a security hole and get hacked soon. The last mass hack changes or overwrite the config.inc.php

Check the file and compare with your backup.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#311726 - 10/14/06 12:41 PM Re: Hosting being suspended due to sql errors :( [Re: Zarzal]
MossY Offline
Newbie

Registered: 10/12/06
Posts: 16
ok. its 6.5.5 i am useing.
i checked back in a config.inc file from a couple of months ago... and this line still isnt there frown

can i add it? will it still be affective if i type the line in?
_________________________
http://www.blighty-renegades.co.uk

Top
#311727 - 10/14/06 04:57 PM Re: Hosting being suspended due to sql errors :( [Re: MossY]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
yes smile
_________________________
- Allen wavey
- What Drives You?

Top
#311732 - 10/15/06 09:14 AM Re: Hosting being suspended due to sql errors :( [Re: AllenAyres]
MossY Offline
Newbie

Registered: 10/12/06
Posts: 16
(ooh, top man on my case now smile )... nice one... thats what i will do then.

ok, if this doesnt clear the fault, how do i tell which queery is holding up all the cpu time??


Edited by MossY (10/15/06 09:15 AM)
_________________________
http://www.blighty-renegades.co.uk

Top
#311733 - 10/15/06 11:03 AM Re: Hosting being suspended due to sql errors :( [Re: MossY]
MossY Offline
Newbie

Registered: 10/12/06
Posts: 16
ok, gone for a fresh install as they suspended, then locked us out frown

i have set everything up and now im starting to put the forums back together.

But i cant setup my portal/index page. i have lost that as an option in my control panel!!! how do i get it back?? i need to enable portal... but how?
_________________________
http://www.blighty-renegades.co.uk

Top
#311734 - 10/15/06 11:19 AM Re: Hosting being suspended due to sql errors :( [Re: MossY]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
6.5.5 doesn't have an portal. What do you use? IIP? Maybe you overwrite the index.php ...
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#311735 - 10/15/06 04:13 PM Re: Hosting being suspended due to sql errors :( [Re: Zarzal]
MossY Offline
Newbie

Registered: 10/12/06
Posts: 16
yes.. IIP. is it an addition?/ i inherited the forum (well, the bloke that set it up left) so this was all in place when i took over.

do i need to install additional stuff then??
_________________________
http://www.blighty-renegades.co.uk

Top
#311736 - 10/15/06 06:43 PM Re: Hosting being suspended due to sql errors :( [Re: MossY]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Yes, you can, in most cases, find th emodifications in the UBB.Threads 6.5.x modifications forum here, IIP being one of them.

Another option would be upgrading to UBB.Threads, it is less intensive on the database as it utilizes a caching system, and comes with a lot of the previous popular mod's as stock features (including a portal).
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#311737 - 10/16/06 02:40 AM Re: Hosting being suspended due to sql errors :( [Re: MossY]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
There are 2 Version of IIP available:
Version 6.5
Version 5.1.1

_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#311743 - 10/16/06 05:07 PM Re: Hosting being suspended due to sql errors :( [Re: Zarzal]
MossY Offline
Newbie

Registered: 10/12/06
Posts: 16
yup, found them.. cheers tho, nice one...

ok, almost done smile...

one last question. which file do i edit to edit the navigation bar - you know... the one that says stuff like "Portal Page Forum List My Stuff User List Calendar Active Topics Search FAQ" along the top of the forums...



last question... honest smile
_________________________
http://www.blighty-renegades.co.uk

Top
#311748 - 10/16/06 05:23 PM Re: Hosting being suspended due to sql errors :( [Re: MossY]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
In .T7 it's through the template editor on the header.tpl file; on previous versions of .T, i'm not entirely sure as I never ran one...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#311751 - 10/16/06 06:23 PM Re: Hosting being suspended due to sql errors :( [Re: MossY]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
in V6.5.5 its templates/default/ubbt_registerednav.tmpl and templates/default/ubbt_unregisterednav.tmpl
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#311754 - 10/16/06 06:47 PM Re: Hosting being suspended due to sql errors :( [Re: Gizmo]
MossY Offline
Newbie

Registered: 10/12/06
Posts: 16
im running 6.5.5 but i dont see it in the header.tplt file frown
_________________________
http://www.blighty-renegades.co.uk

Top
Page 1 of 2 1 2 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks