Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Changing IP address of a Virtual host to dedicated IP

Discussion in 'User Experience' started by armin654, Apr 8, 2014.

  1. armin654

    armin654 Well-Known Member

    Joined:
    Feb 12, 2014
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    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 ,.....
     
    #1 armin654, Apr 8, 2014
    Last edited: Apr 8, 2014
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    834
    Likes Received:
    28
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    I have a guide for that here:

    Changing a Site’s IP Address :: The cPanel Admin

    Go to the section where it describes making the change manually. I don't see any reason you would need to update device configs/etc, just change a couple config files.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,720
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. armin654

    armin654 Well-Known Member

    Joined:
    Feb 12, 2014
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Thank you VANESSA for your care. Michael that was what i was looking for
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice