Current time: 08-14-2022, 11:24 AM Hello There, Guest! (LoginRegister)


Post Reply 
PHP request
Author Message
santerref Offline
Junior Member
*

Posts: 62
Joined: Apr 2008
Reputation: 0
Post: #1
PHP request
Hello,

I want to know if it's possible to block PHP script when the avarage that he use is too big... like my avarage is always like 0.02 or 0.01 and when the PHP script is like

Quote:<?php
while (1){
mail("","","");
}
?>

The avarage grow up to 2.0 or 4.0 and it's dangerous for the server so i want to know if i can block script like that...

I'm not shure if i'm clear... Rolleyes

Santerref
(This post was last modified: 01-12-2009 03:40 PM by santerref.)
01-12-2009 03:39 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: PHP request
You are clear, but I'm afraid that there's no "out of the box" solution for this. You could try to implement your own process watcher that monitors the php5-cgi processes and disables the vuxxxx user account if it consistently uses too much CPU...
01-14-2009 03:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
santerref Offline
Junior Member
*

Posts: 62
Joined: Apr 2008
Reputation: 0
Post: #3
RE: PHP request
Oh yes it's a good idea, i will make that and i can use this for other program ! Thanks a lot !
01-16-2009 07:41 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)