Changing a Site’s IP Address
Posted by Vanessa | Tagged under howto,networking,tricks | Posted on April 7, 2010
7
There are three ways to change a site’s IP address on a cPanel server:
Via WHM:
Go to WHM > Change site’s IP Address , select the account, then select the IP
Via Command Line:
/usr/local/cpanel/bin/setsiteip -u $user $ip
Manually:
-Edit /var/named/domain.com.db and increment the serial number. For help in changing DNS, see this post
-Replace instances of the old IP with the new IP in /var/cpanel/userdata and /var/cpanel/users
replace 123.123.123.123 222.222.222.222 — /var/cpanel/userdata/user/*
replace 123.123.123.123 222.222.222.222 — /var/cpanel/users/user
-If the new IP is shared, remove the user’s main domain entry from /etc/domainips. If it’s a dedicated IP, add/change the IP in /etc/domainips and /etc/ssldomains (if the site has an SSL)
-Run /scripts/rebuildhttpconf and /scripts/rebuildippool
Related posts:





sending...

[...] this article to learn how to assign each account its own IP [...]
[...] Changing a Site’s IP Address [...]
[...] Changing a Site’s IP Address [...]
hah! I feel dumb. I didn’t know this:
/usr/local/cpanel/bin/swapip
When doing it from the command line.. I always did it the manual way. The more you know lol.
[...] this article to learn how to assign each account its own IP [...]
hi this manual is’nt enough
plz more help!
could u please tell me how to add multiple ip in a cpanel?