Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2003
    Posts
    397

    Default Hostname Lost

    Hi

    i have a problem when i reboot my server i can't access anymore in cpanel because the system can't find the hostname but looking in /etc/hosts i have it! I can get whm back only if i type from ssh "hostname host.domain.com" how can i fix?

  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

    You also need to check your network configuration file:

    /etc/sysconfig/network
    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

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    1

    Exclamation

    I have a similar problem, although I don't lose connectivity to the server.

    Every time the box gets rebooted the hostname will reset back to the default it was when first setup by my webhost, and therefore I have to go in cpanel, change hostname, and then also edit /etc/hosts cause it keeps leaving some leftover name which doesn't have counterpart in the dns.

    Any idea where cpanel keeps the default hostname template (if any)?

    Thanks,

    - Adriano

  4. #4
    Member
    Join Date
    Dec 2003
    Posts
    34

    Default

    Manually add the hostname in /etc/hosts and /etc/sysconfig/network this will fix the problem.

  5. #5
    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

    Unless you're running on a Virtuozzo VPS, if you keep losing your hostname you need to speak to your VPS provider.
    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. Hostname changed. cPanel/WHM still try to access original hostname
    By Nathan D. in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-24-2009, 04:42 PM
  2. hostname/webmail redirect to https://webmail.hostname
    By pecito in forum E-mail Discussions
    Replies: 1
    Last Post: 06-05-2008, 06:25 AM
  3. SSL cert works for hostname/cpanel but not hostname:2082
    By foxphiles in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-30-2008, 09:12 AM
  4. Hostname Error but the hostname is set correctly
    By rodstewart in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-05-2005, 11:19 AM
  5. Lost Ip Help !
    By dalecpanel in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-10-2002, 06:59 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube