The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    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:
    16
    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.
     
  3. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    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"
     
  4. hikaro

    hikaro Well-Known Member

    Joined:
    Nov 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    16
    brianoz,
    thats what i'm looking for, thanks! it works
     
Loading...

Share This Page