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!

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:
    168
    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:
    168
    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:
    168
    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/' *
     

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