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