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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

hosts file problem

Discussion in 'General Discussion' started by Glasswalker, Oct 25, 2005.

  1. Glasswalker

    Glasswalker Member

    Joined:
    Oct 12, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    Ok I have a server that is the destination of a migration. During this migration I need every script running on that server to think that mysqlhost.something.com is actually 127.0.0.1 as opposed to the actual ip that it resolves to through DNS (being the old sql server that I am migrating off of). The easiest way to do this that I know of is to edit the hosts file and add an entry for that. Which works great...

    But it seems that within 24 hours the hosts file reverts to it's old self... How can I get around this? I need it to STAY The way I put it...
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,472
    Likes Received:
    20
    Trophy Points:
    463
    Location:
    Go on, have a guess
    When the cron job /scripts/upcp runs it will "repair" the /etc/hosts file. You could comment out the nightly upcp root cron entry until you've migrated.
     
Loading...

Share This Page