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.

'Listen' disappear from Apache conf

Discussion in 'EasyApache' started by Dhillon, Jun 5, 2016.

  1. Dhillon

    Dhillon Member

    Joined:
    Dec 26, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Server has 4 IPs, sometimes after cpanel updates one particular IP's Listen directive get removed from apache conf.

    I have to manually add Listen x.x.x.x to httpd.conf to get sites on that IP online.

    Whats happening ?
     
  2. 24x7serversecurity

    Joined:
    Aug 31, 2015
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi :),

    Have you manually added the IP to the server or from the WHM? Also try rebuilding the apache conf file
    1. Create a copy of your httpd.conf file with your direct modifications.
    2. Run the /scripts/rebuildhttpdconf script to rebuild your httpd.conf file.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,830
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, as mentioned, please run the following command and let us know of any output:

    Code:
    /scripts/rebuildhttpdconf
    Also, what method did you use to add these IP addresses to the server?

    Thank you.
     
  4. Dhillon

    Dhillon Member

    Joined:
    Dec 26, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Running '/scripts/rebuildhttpdconf' , I am getting this output.

    Shared IP x.x.x.x is reserved. Apache will not listen on this IP

    Under whm > Show/Edit Reserved IPs, none of the IP is selected.
    Although the problematic IP is dedicated to an account.
     
  5. Dhillon

    Dhillon Member

    Joined:
    Dec 26, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Got the issue, The IP was marked reserved under 'Home >> Service Configuration >> Apache Configuration >> Reserved IP Address Editor'

    Thanks for the help, I couldn't have figured by my own :)
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,830
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator

Share This Page