Find the answer to your Linux question:
Results 1 to 3 of 3

Thread: /etc/hosts

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1


    I know this is not very important but I get this error after service httpd star:

    httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName

    I change /etc/hosts from: myhost # Added by NetworkManager localhost.localdomain localhost
    ::1 myhost localhost6.localdomain6 localhost6

    to: myhost # Added by NetworkManager localhost.localdomain localhost
    ::1 myhost

    But the file comes back to its original form after I reboot the system, and then I get the same error...

  2. #2
    Just Joined!
    Join Date
    Nov 2011
    6 myhost
    #::1 myhost

    on your httpd.conf change your server name with right name for example myhost:80

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Santa Cruz, California
    You should restore the /etc/hosts file to its former state. The hostname should show up in /etc/hostname. Then edit httpd.conf as above and restart the server.

    Also, configure /etc/resolv.conf unless you are using Network Manager to configure your network - Network Manager writes this file according to its own settings.

    As you said, this message is probably not too important.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts