Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Oct 2005
    Posts
    15

    Default hosts file problem

    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. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. [Case 49181] mainip detection results in altered /etc/hosts file
    By 9xlinux in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 05-13-2011, 08:17 PM
  2. Problem with Remote Database Access Hosts
    By santrix in forum Database Discussions
    Replies: 3
    Last Post: 05-11-2010, 10:55 PM
  3. Ipcheck email - cpanel changing my hosts file
    By dezignguy in forum cPanel and WHM Discussions
    Replies: 21
    Last Post: 01-08-2005, 02:29 PM
  4. /etc/hosts Problem
    By suge in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-04-2005, 01:41 PM
  5. Virtual hosts problem
    By mgdoyle in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-24-2004, 11:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube