LAMP Hostname problem

Discussion in 'Installation/Configuration' started by innerspace, Sep 25, 2006.

  1. innerspace

    innerspace New Member

    First off I'm new to howtoforge and am very impressed with the community!

    I used to setup a LAMP server on an old Optiplex and was pleased as punch with the instructions.

    I'm a n00b when it comes to Linux but the tutorial helped me get my system up and running quickly. Unfortunately, I broke the system shortly thereafter (read *n00b!) and decided to reinstall. I upgraded my system drive to one with greater capacity and proceeded to reinstall the OS.

    Everything was going fine until I edited /etc/hosts

    hostname returns only my localhost (for example foo)
    hostname -f returns as expected (for example

    my hosts file looks like this: localhost.localdomain localhost
    192.168.0.X foo

    ::1 ip6-localhost ip6-loopback


    What am I doing wrong?

    Thanks in advance for any and all suggestions.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    What is the problem you encounter with the hostname?
  3. innerspace

    innerspace New Member

    As I understand hostname, and as the guide I referenced states, both commands should yield the same result from terminal, ie both hostname and hostname -f should output

    My output doesn't match (see above).
  4. falko

    falko Super Moderator ISPConfig Developer

    That's ok, you can go on with the tutorial. :)
  5. innerspace

    innerspace New Member

    mysql threw an error too

    Thanks for the replies guys.

    well I did go on with the tutorial and after installing mysql I set the root password for MySql ok for localhost but when trying to set the password for it responds with "can't connect to

    Are these problems related?
  6. falko

    falko Super Moderator ISPConfig Developer

Share This Page