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

   Hosting being suspended due to sql errors :( to Del.icio.us Add to del.icio.us
  Digg Hosting being suspended due to sql errors :( Digg it
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: 806
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: 806
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: 806
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 Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25427
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: 806
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 Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5122
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 Owner

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: 806
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 Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5122
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 Owner

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: 806
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 >


Who's Online
0 Registered (), 28 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by Ian_W
Yesterday at 03:47 PM
What do you use to edit the files
by Ian_W
Yesterday at 03:33 PM
BeyondCompare v3.00
by Ian_W
Yesterday at 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
Yesterday at 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
ghengis317, NitroX, Dogan, EliYah-, W-D
13344 Registered Users
Top Posters Last 30 Days
AllenAyres 16
blaaskaak 13
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
tackaberry 3

 

 

 
fusionbb message board php hacks