Sometimes, something odd happens when you go to add an IP address to your server, you’ll see this error:
$IPADDRESS is already an active IP. Skipping $IPADDRESS .. already added !
If that happens there are a couple of things to check and correct. Hopefully one of these will work for you.
Make sure that the IP address you’re trying to add has been removed from these files:
1 2 3 |
/etc/hosts /etc/ips /etc/mail_reverse_dns |
If you are trying to add back the IP that was previously the primary IP address, you will need to update this file:
1 |
/var/cpanel/mainip |
Once you edit the mainip file to reflect the new IP address, run these commands:
1 2 3 |
/etc/init.d/network restart /etc/init.d/ipaliases restart /scripts/rebuildhttpdconf |
Now you should be able to add the IP address to WHM again.
Comments NOTHING