changing hostname on perfect server not working

Discussion in 'HOWTO-Related Questions' started by Heeter, Jan 16, 2009.

  1. Heeter

    Heeter Member

    Hi,

    I am trying to change the hostname on my perfect server download image (sudo nano /etc/hosts) but when I restart it, it still says server1.example.com.

    Is there another place that I must configure my new hostname?

    I have changed all the ip addresses already.

    I am going to use this vmware image as my webserver, should I stick with "bridged" or move to "NAT" network connection for vmware?

    How do I change the login, mysql root, etc passwords?


    Thanks

    Heeter
    ________
    GLASS WEED PIPE
     
    Last edited: Mar 7, 2011
  2. falko

    falko Super Moderator ISPConfig Developer

    Which distribution are you using?
     
  3. Heeter

    Heeter Member

    Sorry Falko,

    Forgot to mention that it is Ubuntu server 8.10 perfect setup.


    Heeter
    ________
    Cr450
     
    Last edited: Mar 7, 2011
  4. falko

    falko Super Moderator ISPConfig Developer

    Code:
    echo bla.yourdomain.com > /etc/hostname
    /etc/init.d/hostname.sh start
     
  5. Heeter

    Heeter Member

    For the "echo" command, This is what I get:

    Code:
    -bash: /etc/hostname: Permission denied
    
    For the etc/init.d/.... command, this is what I get (even though I changed to server1.mydomain.com):
    Code:
    sudo unable to resolve host: server1.example.com
    
    I have lost the network connection as well. I changed the Ip address/gatewaybroadcast to 192.168.1.xxx, from 192.168.0.100, because my internal network is that.

    What do I do now?

    Heeter
    ________
    CHRYSLER RFE TRANSMISSION SPECIFICATIONS
     
    Last edited: Mar 7, 2011
  6. falko

    falko Super Moderator ISPConfig Developer

    Run
    Code:
    sudo su
    first and then execute the two commands.
     
  7. Heeter

    Heeter Member

    Last edited: Mar 7, 2011

Share This Page