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!

hosts file problem

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

  1. Glasswalker

    Glasswalker Member

    Oct 12, 2005
    Likes Received:
    Trophy Points:
    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 is actually 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

    Jun 15, 2002
    Likes Received:
    Trophy Points:
    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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