Multiple shared IPs in WHM

From lxadm | Linux administration tips, tutorials, HOWTOs and articles
Jump to: navigation, search

Ever wondered how to set up multiple shared IPs in WHM? Here is how.

You can’t add multiple shared IPs in WHM GUI, but it’s possible to do so via SSH (login as root).

First, you need to create a /var/cpanel/mainips/ directory, if it doesn’t exist:

mkdir /var/cpanel/mainips/

Then, create a /var/cpanel/mainips/root file, with the following content:

1.2.3.4
3.4.5.6

Basically, each line is an additional shared IP in WHM. That’s it!