Starting httpd: cocould not reliably determine the server's fully qualified domain name Solution

Source: Internet
Author: User
Tags fully qualified domain name

Address: http://digitaldeviation.com/articles/linux/apache-error-could-not-reliably-determine-the-servers-fully-qualified-domain-name

When starting Apache for the first time or after a networking change you get the following error:

Httpd: cocould not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

This message is more of a warning than error. if you check your running processes you will see the httpd process running. basically Apache is telling you that it doesn't know the host name of your server. this is a simple fix.

Note that the instructions below are for CentOS/Redhat. they may be similar for your distro. you will need to know your IP address and the host name for your server. I will use Server1.example.com as the host name and 192.168.20.100 as the IP address.

  1. Edit/etc/hosts using your favorite editor The contents shoshould look something like this:# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost. localdomain localhost: 1 localhost6.localdomain6
    Localhost6
  2. At the end of the file add:192.168.20.100 Server1.example.comThat's a [tab] between the IP address and the host name
  3. Save the file
  4. Restart the network services to apply your changesService network restart
  5. Restart ApacheService httpd restart

Http://www.wallpaperama.com/forums/how-to-fix-could-not-determine-the-servers-fully-qualified-domain-name-t23.html

127.0.0.1 localhost
123.123.123.123 hostname.domain.de hostname

The fix is to edit the conf file and add in the ServerName setting (as the error message requests). In other words,

Sudo vi/etc/apache2/httpd. conf

By adding the following string :,

# ServerName is to be specified to avoid warning during reload
ServerName MYSERVER

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.