Solve the apache error in FreeBSD and linux: apr_sockaddr_info_get () failedforfreebsdla -- Linux Enterprise Application-Linux server application information. For details, refer to the following. After Apache 2.2.6 is installed in Linux, an error is reported when the HTTP service is started. It does not seem to affect the service usage, but it is also awkward.
[Root @ linux http] #./apachectl start
Httpd: apr_sockaddr_info_get () failed for linux (apr_sockaddr_info_get () failed for freebsdla on BSD)
Httpd: cocould not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
It is found that the configuration file httpd is under the conf directory of apache. if the hostname settings in conf and the HOSTNAME settings in/etc/sysconfig/network are inconsistent, you can change them to a uniform host name to solve the problem.
Note: The default Host Name of/etc/sysconfig/network is: HOSTNAME = localhost. localdomain
PS: It seems useless to use this method on the Internet, because I think apache will Compile ARP during the compilation and installation process, so the following operations are a bit redundant.
Apr and apr-util are included in the Apache httpd release source code and will not be used in most cases. Of course, if apr or apr-util version 1.0 or 1.1 is already installed in your system, you must upgrade your apr/apr-util to version 1.2, or compile httpd separately. To install the source code apr/apr-util in the source code of the release, you must manually:
# Compile and install apr 1.2
Cd srclib/apr
./Configure -- prefix =/usr/local/apr-httpd/
Make
Make install
# Compile and install apr-util 1.2
Cd ../apr-util
./Configure -- prefix =/usr/local/apr-util-httpd/-- with-apr =/usr/local/apr-httpd/
Make
Make install
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.