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.

Apache Refuses to Start

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

  1. dstana

    dstana Member

    Joined:
    Jul 6, 2016
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    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. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    599
    Likes Received:
    90
    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 Member

    Joined:
    Jul 6, 2016
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page