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!

Random 500 error

Discussion in 'General Discussion' started by Silent Ninja, Sep 2, 2008.

  1. Silent Ninja

    Silent Ninja Well-Known Member

    Apr 18, 2006
    Likes Received:
    Trophy Points:
    Buenos Aires, Argentina
    There's an issue on our webservers that I'll describe:

    1.- You enter to any site on the apache.. it works.
    2.- You can plently navigate your site for hours, until..
    3.- At some (apparently random) point, poof.. 500 error
    4.- ALL the sites have this 500 error and error_log shows some premature ending of the scripts (php and html sites!)
    5.- You "killall" the httpd processes
    6.- Restart httpd..
    7.- Go back to step 1

    I think this has something to do with the latest cPanel updates because this is happening since a few days, but it keeps going faster and faster (today happened like.. 20 times or more, it use to happen once per week which wasn't so bad).

    - Our webservers has 2gb of RAM plus 4GB swap, so It's not about that.
    - It happens on 4 of our webservers, they're all Dual Core and Core Duo servers. This may mean something, but the Dual Core servers has CentOS 4 (32bits) ant the Core Duo has CentOS 5 (64bits) installed so.. it's not OS related I think.

    - I'm thinking that the main reasons could be...
    1.- Suhosin (previously added)
    2.- RLimitMEM and RLimitCPU from the httpd.conf
    3.- Apache 2.2 (who REALLY IS a memory eater beast..)
    4.- Some crappy php/apache option that I've compiled on
    5.- .. erm.. I've no more smart ideas.. HELP! :(

    Have this happened before? Is there any fix, something I could look at?
    It tends to happen erraticaly, I've suspended all accounts with more than 10% of memory usage, deleted all crons that executed faster than 2 times per hour..

    I've also checked on the apache logs, but the suphp_log doesn't shows nothing rare, suexec_log shows only some cgi scripts (counters/guestbooks mostyl), error_log shows only some 404 error files, and 500 errors (since the server started failing up to the second I watch it).. and access_log.. well just shows some web accesses.. it's really useful here.

    The only thing that I think would be fast and good is to rollback to Apache 1.3 but that will mean like 30 minutes offline from all our clients, so I only intend to do it ONCE (I wont go back if I rollback, and that's not the best idea ever).

    Please I need to resolve this quickly, as my clients may be thinking about how to get my head crippled from my body ! :eek:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 Silent Ninja, Sep 2, 2008
    Last edited: Sep 2, 2008
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you haven't already done so for this issue, I recommend letting our technical analysts take a look at your server.

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