Dhillon

Member
Dec 26, 2007
7
0
51
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 ?
 

24x7serversecurity

Active Member
Aug 31, 2015
39
6
8
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
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.
 

Dhillon

Member
Dec 26, 2007
7
0
51
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.
 

Dhillon

Member
Dec 26, 2007
7
0
51
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 :)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.