Multiple shared IPs in WHM

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:

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

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