The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP scripts "hanging" on Apache 2.2?

Discussion in 'EasyApache' started by DBJoshua, Mar 2, 2008.

  1. DBJoshua

    DBJoshua Active Member

    Joined:
    Jun 7, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Kind of a weird issue. If I leave httpd alone on the cPanel servers for a few days, then login to "top", I always see a whole bunch of PHP scripts in the process list, but doing absolutely nothing (only taking up some memory and no CPU). It's multiple users, all unrelated to each other

    Is there a way to set Apache to kill those processes automatically? Having it restart every few days isn't an option


    Thanks!
     
  2. DBJoshua

    DBJoshua Active Member

    Joined:
    Jun 7, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Any way to get a quick fix/answer?
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Nothin's quick. You might install this to let you know what scripts are overloading your server and set it to kill them. Even tar the files up to stop whatever it is thats causing the problems, if needed. http://www.configserver.com/cp/csf.html

    (this'll catch 'em quick) ;)
     
  4. DBJoshua

    DBJoshua Active Member

    Joined:
    Jun 7, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    I already know which users are causing it :)

    But the scripts they use are all common, and other users on the server, with the same script, don't hang...
     
  5. VeZoZ

    VeZoZ Well-Known Member

    Joined:
    Dec 14, 2002
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Bringing this topic back to life but we've seen on on every server we have running suPHP and apache 2. I'm going to imagine it's a bug with suPHP, Apache or PHP. The reason I say this is because there is no common user, script or anything. You can easily get rid of them, but obviously it be best to resolve it without having to kill the processes.
     
  6. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    Try removing some mod_security rules (just leave the absolute bare minimum in place) for 24 hours or even disable altogether - seen this heaps with mod_security and bad regexes or to many rules.
     
Loading...

Share This Page