Error: No CURL Found - Social Networks AutoPoster needs the CURL PHP extension. Please install it or contact your hosting company to install it.

Setup multiple shared IP's in cPanel/WHM Server - ServerTechSupport
15 February 2014
Category:
cPanel
Comments: Comments Off on Setup multiple shared IP’s in cPanel/WHM Server

Setup multiple shared IP’s in cPanel/WHM Server

By default cPanel only allows one shared IP per server. But sometime you may need to multiple shared IP’s for e.g. assign different group of domain to different class IP. cPanel doesn’t provide any direct option for this but can be done easily via shell.

First of all reserve the IP’s.

echo "1.1.1.1" >> /etc/reservedips
echo "2.2.2.2" >> /etc/reservedips
echo "3.3.3.3" >> /etc/reservedips

You can also do it from WHM >> Reserved IP’s

Now rebuild the IP pool

/scripts/rebuildippool

Now create directory /var/cpanel/mainips/

mkdir /var/cpanel/mainips/

Now add all the shared IP’s to /var/cpanel/mainips/root

echo "1.1.1.1" >> /var/cpanel/mainips/root
echo "2.2.2.2" >> /var/cpanel/mainips/root
echo "3.3.3.3" >> /var/cpanel/mainips/root

Now you can assign these IP’s to multiple domains. If you want to assign multiple IP’s to a reseller account then simply add all the IP’s to file /var/cpanel/mainips/RESELLER_USERNAME

Comments are closed.