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!

change sites ip

Discussion in 'General Discussion' started by hikaro, Nov 17, 2006.

  1. hikaro

    hikaro Well-Known Member

    Joined:
    Nov 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    166
    my datacenter is giving me new ip address for replace my old ips, is there any way to change the ip of my clients site without make it down ?
    because i just tested on 1 website, and after the changed i was disable to open their site again (come cpanel default page) because my dns not resolve yet.
    if anyone here has experience about it please do share with me, i need to change it soon.

    thank you
     
  2. krava

    krava Well-Known Member

    Joined:
    Sep 23, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    Hello.

    No, it isn't possible to do. The domains won't be accessible for some visitors within a few hours.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Yes, you need to edit /etc/httpd/conf/httpd.conf by hand and add the old IP in next to the new IPin the VirtualHost line for the site, then both will work. After the DNS change has fully propagated you can then re-edit the file remove the extra IP from the VirtualHost line.

    ie:
    HTML:
    <VirtualHost 111.222.333.444>
    becomes:
    HTML:
    <VirtualHost 111.222.333.444 111.22.33.44>
    After you do the change, do a "service httpd restart"
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. hikaro

    hikaro Well-Known Member

    Joined:
    Nov 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    166
    brianoz,
    thats what i'm looking for, thanks! it works
     
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