Change website

From Jan 16 2015,


All post content will be move to we's offical website with many content...

Can access website here: http://justox.com

Thanks for your visit!

Thursday, 19 December 2013

Changing a Site’s IP Address

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
-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

No comments:

Post a Comment