How to troubleshoot Linux under Apache boot Httpd:apr_sockaddr_info_get () failed for error

Source: Internet
Author: User
Tags fully qualified domain name

When installing Apache, use the User1 user first./configure the command configuration before using the root user make && make install, resulting in Apache reporting the following error:

Httpd:apr_sockaddr_info_get () failed for Bogon

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

Although not hinder the use, but looked at the error always feel awkward, after finding out that the problem should not be set in the/etc/httpd/conf/httpd.conf ServerName. So Apache will use the host name to replace, first will find/etc/hosts in the definition of the host.

So to solve this problem you can set the ServerName in the httpd.conf file, as follows:

(1) ServerName localhost:80

or fill in the/etc/hosts with your host name Bogon, as follows :

(2) 127.0.0.1bogon

Note :

The host name of the current system is subject to the hostname command, and the hostname settings in the/etc/sysconfig/network may not be consistent.

/etc/sysconfig/network Default host name is: Hostname=localhost.localdomain


This article from "Nicol Lock Silk Sorrow" blog, please make sure to keep this source http://smoke520.blog.51cto.com/9256117/1827886

How to troubleshoot Linux under Apache boot Httpd:apr_sockaddr_info_get () failed for error

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.