Change Site IP via WHM Command Line CLI

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
 
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install IonCube in cPanel/WHM ?

Install Ioncube loader on your cPanel servers, if you need to  handles the execution of encoded...

How to Reset my cPanel Account Password?

If you can access your cPanel account, follow these steps to reset your password:1. Log into your...

How to update your cPanel Contact Information or receive a notification on reaching quota limit?

If you want to receive notification on reaching your disk quota, bandwidth usage limit, reaching...

How to Change cPanel Style/Theme?

Switching over to another cPanel theme with a different style is easy and there are two ways to...

How to Change Language of your cPanel?

cPanel supports a lot of languages, and if you want to change your cPanel language to your native...