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.

Help with Change Host NAme

Discussion in 'General Discussion' started by jsotelo, Apr 2, 2005.

  1. jsotelo

    jsotelo Registered

    Joined:
    Jul 21, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hello

    I changed my hostname but i make a mistake :eek: and now every time i click on any option such as Tweak settings or Server Information it shows a message:

    Invalid Hostname. (host.websperu.net ). Hostnames may not contains spaces or tabs.

    How can i reset the hostname?

    Thank you
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  3. northtrex

    northtrex Active Member

    Joined:
    Feb 26, 2005
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    You can edit localhost and hostname at /etc/hosts. You will see a line ar the end of the file containing hosts.... or host1..... then just replace it by the original and check if host.websperu.net is located here before making the changes. To edit, do it (if you have pico installed): pico hosts or pico /etc/hosts.

    Hope it can help.
     
  4. jsotelo

    jsotelo Registered

    Joined:
    Jul 21, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thank you

    Thank you
    I rebooted my server via ssh
    and all is fine at this time..
    ... Next time i will try to edit the files

    :)
     
Loading...

Share This Page