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!

License / Install

Discussion in 'General Discussion' started by smittyatthebeac, Dec 16, 2008.

  1. smittyatthebeac

    smittyatthebeac Registered

    Joined:
    Dec 9, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    When i run /usr/local/cpanel/cpkeyclt

    I receive the message of [Cpanel::Sys]: Unable to determine correct hostname


    I checked /etc/hosts and the first line is
    ::1 cpanel-linux1.maskeddomain.org

    I checked /etc/sysconfi/network and I have the following line in the file
    HOSTNAME=cpanel-linux1

    Any ideas on what could be going wrong?

    Thanks and happy holidays.
     
  2. arunsv84

    arunsv84 Well-Known Member

    Joined:
    Oct 20, 2008
    Messages:
    373
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    127.0.0.1
    cPanel Access Level:
    Root Administrator
    Try this solution...got from one forum...


    Code:
    I ran into this same problem: lfd on This account is currently not available.:
    
    Because of this hostname problem, cPanel Licensing couldn't properly check and WHM/cPanel returned that very pleasant licensing error screen.
    Code:
    
    root@peblbich[~]# /usr/local/cpanel/cpkeyclt
    [Cpanel::Sys]: Unable to determine correct hostname
    Updating Internal cPanel Information.....Done
    root@peblbich[~]#
    
    Even though:
    Code:
    
    root@peblbich[~]# vi /etc/hosts
    ::1             localhost6.localdomain6 localhost6
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               localhost
    111.22.232.111      peblbich peblbich.heplansnoslime.com
    
    root@peblbich[~]# lynx -dump http://www.cpanel.net/showip.cgi
    
       Your ip is: 111.22.232.111
    
    Theoretically, everything should have worked, except it didn't.
    
    To resolve, I removed the hostname and FQDN from the /etc/hosts file, like so:
    
    Code:
    
    root@peblbich[~]# vi /etc/hosts
    
    ::1             localhost6.localdomain6 localhost6
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               localhost
    111.22.232.111
    
    Then set the hostname:
    Code:
    
    root@peblbich[~]# hostname peblbich.heplansnoslime.com
    root@peblbich[~]#
    
    After which I edited the hosts file again and added "peblbich" as a hostname in front of the FQDN again; saved and exited.
    
    Now running the cPanel license update returned:
    Code:
    
    root@peblbich[~]# /usr/local/cpanel/cpkeyclt
    Updating Internal cPanel Information.....Done
    root@peblbich[~]#
    
    This cleared both of my problems: lfd's hostname error and cPanel's license issue.

    Reference: http://forum.configserver.com/showthread.php?p=4338

    Cheers!!!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. smittyatthebeac

    smittyatthebeac Registered

    Joined:
    Dec 9, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    thanks for the info. I just used the hostname command and it worked. Very simple.
     
  4. arunsv84

    arunsv84 Well-Known Member

    Joined:
    Oct 20, 2008
    Messages:
    373
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    127.0.0.1
    cPanel Access Level:
    Root Administrator
    glad 2 knw that everything is working fine..

    :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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