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.

Is this a bug?

Discussion in 'General Discussion' started by rsaylor, Feb 5, 2004.

  1. rsaylor

    rsaylor Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    160
    Likes Received:
    1
    Trophy Points:
    18
    Ok, I've been messing with the theme commands in x and I wanted to display the server IP address when the user logges into a section of cPanel.

    I issued the following command in the file:

    <cpanel print="$DATA{'IP'}"> and it prints the server IP.

    However, when another user loges in that was transfered from another server some months ago it is displaying that old server's IP. I have not figured out yet where it is pulling this data from. I moved a server from Rackshack to The Plan in Dec so maybe a file got moved over. I don't think it is checking any whois DB.
     
  2. rsaylor

    rsaylor Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    160
    Likes Received:
    1
    Trophy Points:
    18
    looks like it is in the /var/cpanel/users directory

    I opened the "username" and there was the old IP.
     
  3. rsaylor

    rsaylor Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    160
    Likes Received:
    1
    Trophy Points:
    18
    Ok, I fixed it with this server so if anybody else is looking for help on this will work.

    [/var/cpanel/users]# perl -pi -e 's/old_ip/new_ip/' *
     
Loading...

Share This Page