Changing IP address of a Virtual host to dedicated IP

armin654

Well-Known Member
Feb 12, 2014
45
0
6
cPanel Access Level
Root Administrator
Hello guys
Thanks for Cpanel for the built-in CHANGE IP ADDRESS of A WEBSITE module.
But i want to know how to do it manually without using cpanel? In fact i want to know the shell which is executed by cpanel in background.

When you have many virtual hosts, how we can change the ip address of a virtual host from shared IP to Dedicated IP?

I mean the complete list of tasks that we need to do. from Network device configurations,httpd configurations, virtual host changes ,.....
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

If you are looking for the command-line equivalent of what's used in WHM, then the following script should be suitable:

Code:
/usr/local/cpanel/bin/setsiteip

Usage: /usr/local/cpanel/bin/setsiteip [-u user | domain] ip
Thank you.