How to change a website’s IP address via command line

Just run

/usr/local/cpanel/bin/setsiteip -u $user $ip

or using whmapi1

whmapi1 setsiteip ip= user=$user

to add IP onto the server

whmapi1 addips ips= netmask=

to remove IP

whmapi1 delip ip=

to check IP usage

whmapi1 get_shared_ip user=$user

to check server’s IP addresses

whmapi1 listips

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *