CentOS 6.2安装源码httpd

apache常见错误总结:
1、./configure报错
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.
解决办法:
下载安装
apr:
apr-utils:
或者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

解决办法:
[root@ httpd-2.4.1]# yum -y install pcre-devel
2、启动报错:
[root@ bin]# service apache start
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
httpd (pid 912) already running
其实在这里并不是报错,只是个提醒信息,解决办法比较多
(1)、在/etc/hosts写下当前ip与主机名的对应关系
(2)、在本机指能解析本机主机名的DNS

(3)、修改主配置文件,找到ServerName这一行写入本机主机名

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/f35f47f7faeb902d3bcfd1d006ce5bfc.html