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.

Two Queries regarding /var/cpanel/users files

Discussion in 'General Discussion' started by djblamire, Nov 5, 2006.

  1. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    I have recently moved to a new dedicated server (about a month ago now), and I have just been having a look at the files in the '/var/cpanel/users' directory.

    I notice that these have a line that starts IP= - but it is showing the old servers IP address. The sites have been working OK since the swapover, but this doesn't seem right to me....

    Also, some of these files have multiple domain names (and subdomains) - which is OK in itself, but some have multiple lines that start with the same DNS number, eg
    DNS2=mydomain.com
    DNS2=mail.mydomain.com

    Any ideas appreciated,

    Thanks
    Daniel
     
  2. krava

    krava Well-Known Member

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

    I think cPanel gets IPs from:
    /var/cpanel/users/

    when you check "account list" via WHM. Just make sure WHM shows the correct IPs and probably you need to make all DNS numbers different. I think your addon/parked/subdomains are messed in cPanel and you won't be able to remove them properly while the DNS numbers are identical. However it is a guess only.
     
  3. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    When I look at the 'account list' in WHM, it does show the correct new server IP addresses...

    Thanks
    Daniel
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It doesn't get the IP from the cpanel users file, it gets it from httpd.conf, I believe the one in the users file is a legacy item. The DNS= lines should really be ought to be in contiguous increments from DNS to DNS1, DNS2, etc - I don't know if it would cause a problem to have skips and duplicates - it might so would be best to fix them, especially if you're having problems.
     
Loading...

Share This Page