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!

Apache Refuses to Start

Discussion in 'EasyApache' started by dstana, Dec 14, 2016.

  1. dstana

    dstana Well-Known Member

    Joined:
    Jul 6, 2016
    Messages:
    51
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    Phoenix, AZ
    cPanel Access Level:
    Root Administrator
    Hello,

    Apache crashed on our dedicated server last night and I can't get it to restart. After reading through various forums here and elsewhere it seems that we've hit some kind of a limit for the open logs apache can handle due to the volume of vhosts on the server. The error I'm pulling in the logs is:

    "Too many open files: AH00649: could not open transfer log file"

    I've tried increasing the ulimit and placing it in various configuration files on the server but can't seem to get this resolved. Does anyone else have experience with this issue?
     
  2. JacobPerkins

    JacobPerkins Well-Known Member

    Joined:
    May 2, 2014
    Messages:
    619
    Likes Received:
    96
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    Is this for EA3 or EA4?

    If it's for EA4, we recently updated apachectl to include the ulimit increases that we had present in EA3, and that hit our mirrors yesterday. Please check to make sure your packages are up to date via 'yum update'

    If it's EA3, then the ulimit adjustments are already present in the init files, and should be used at startup. It's possible that either way, the limits being set in the init scripts are not high enough for your system, and may need a manual adjustment to be increased.
     
  3. dstana

    dstana Well-Known Member

    Joined:
    Jul 6, 2016
    Messages:
    51
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    Phoenix, AZ
    cPanel Access Level:
    Root Administrator
    It's EA4, I managed to resolve this.

    I edited /usr/sbin/apachectl and bumped "MAX_FD_LIMIT" a bit.

    Will this change make it through updates from cPanel?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    cPanel updates won't overwrite this file unless there's an update to the ea-apache24 package that's performed as part of the "Operating System Package Updates" phase.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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