Install Source httpd-2.4.1 Error Resolution

Source: Internet
Author: User
Tags fully qualified domain name

Common errors in Apache summary:
1,./configure Error
Configuring Apache Portable Runtime Library ...
checking for APR ... configure:error:the--with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
Workaround:
Download installation
Apr:http://apache.etoak.com//apr/apr-1.4.6.tar.gz
Apr-utils:http://apache.etoak.com//apr/apr-util-1.4.1.tar.gz
or yum-y install Apr apr-util
checking for pcre-config ... false
Configure:error:pcre-config for Libpcre not found. PCRE is required and available from http://pcre.org/
Workaround:
[Email protected] httpd-2.4.1]# yum-y install Pcre-devel
2, start error:
[[Email protected] bin]# service httpd start
Fault 1: AH00558:httpd:Could not reliably determine the server ' s fully qualified domain name, using Localhost.localdomain. s ET the ' ServerName ' directive globally to suppress this message
HTTPD (PID 912) already running
In fact, here is not an error, just a reminder message, the solution is more
(1), in/etc/hosts write the current IP and hostname of the corresponding relationship
(2), in this machine refers to the DNS to resolve the native host name
(3), modify the master configuration file, find servername this line to write to the native host name

Fault 2: Name or service not known:AH01564:unable to find IPv4 address of "2015120415424"
Ah00016:configuration Failed

The reason is that the host name is a number, just change the hostname to a non-pure number, after the modification is complete and then replace the original host name with the newly modified/etc/hosts, if there is no original host name, then add a line:
127.0.0.1 New host Name
Restart after saving, and then it will start normally.


Reference: HTTP://WWW.LOFTER.COM/TAG/XAMPP




This article is from the "Boyhack" blog, make sure to keep this source http://461205160.blog.51cto.com/274918/1760165

Install Source httpd-2.4.1 Error Resolution

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.