ispCP - Board - Support
PHP request - Printable Version

+- ispCP - Board - Support (
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: PHP request (/thread-5416.html)

PHP request - santerref - 01-12-2009 03:39 PM


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

while (1){

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


RE: PHP request - kilburn - 01-14-2009 03:39 AM

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...

RE: PHP request - santerref - 01-16-2009 07:41 AM

Oh yes it's a good idea, i will make that and i can use this for other program ! Thanks a lot !