Change Site IP in cPanel

Change Site IP via WHM

Go to WHM > Change site’s IP Address , select the account, then select the IP

Change Site IP via Command Line in cPanel

/usr/local/cpanel/bin/setsiteip -u $USER $IP

For moving all accounts in a server from one Ip to another using the following script;

#!
# https://www.nixtree.com
# Contact support@nixtree.com
#
IP=0.0.0.0 #Set the required IP here
for USER in `cat /etc/trueuserdomains | cut -d: -f2` ;
do /usr/local/cpanel/bin/setsiteip -u $USER $IP ;
done
Facebook Comments