Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

php POST request takes my server down - help !!

Discussion in 'General Discussion' started by student, Dec 19, 2006.

  1. student

    student Active Member

    Aug 9, 2006
    Likes Received:
    Trophy Points:
    One account hosted by my server sends POST request that is overloading server resources and finally takes it down :/ Really have no idea what to do to prevent this killing POST request :/

    I wrote script that logs apache-status when load average is greater than 20, and the apache dump before system got totally overloaded is showing lots of entries like that:
    46-2  ...  125.26 434.91  POST /add.php HTTP/1.1
    So it seems that some user send request using POST method to write some data to database, but why there's lots of the the same POST requestes (from the same IP to the same web using the same script) in the apache-status? Im guesssing that there's problem with bad written php script.

    Is there any method to prevent that POST requests from taking my server down?
    Maybe they're some limits to POST requests - time, database, resource limits or anything that can help me with this killing POST request ...

    I really appreciate any help, the problem is very serious :/
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. rhenderson

    rhenderson Well-Known Member

    Apr 21, 2005
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I can't specifically help you, but I can tell you we had a similar problem and it was causing a huge file to be written in /tmp, once /tmp was filled then this basically caused errors for everything else, in essence it would shut us down. We suspended the customers account after failing to respond to emails from us.

    I will agree it is most likely a poorly written script.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice