CentOS6.2安装源码httpd-2.4.1错误解决办法
2012-03-23 15:27
309 查看
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: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
或者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/
解决办法:
[root@www httpd-2.4.1]# yum -y install pcre-devel
2、启动报错:
[root@www 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这一行写入本机主机名
本文出自 “CrazyLinux工作室” 博客,请务必保留此出处http://crazylinux.blog.51cto.com/259244/815023
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: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
或者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/
解决办法:
[root@www httpd-2.4.1]# yum -y install pcre-devel
2、启动报错:
[root@www 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这一行写入本机主机名
本文出自 “CrazyLinux工作室” 博客,请务必保留此出处http://crazylinux.blog.51cto.com/259244/815023
相关文章推荐
- 安装源码httpd-2.4.1错误解决办法
- linux/centos安装nginx常见错误及解决办法
- linux/centos安装nginx常见错误及解决办法【make错误,需要yum -y install openssl openssl-devel或者自己下载然后重新./configure】
- 【转】ubuntu源码编译安装php常见错误解决办法
- linux/centos安装nginx常见错误及解决办法
- VirtualBox4.1 安装centos6.2 没有中文 无法以图形界面安装的解决办法!
- mysql源码包安装错误解决办法
- 纯源码包安装 lua 的时候遇到的错误和解决办法~~~
- 纯源码包安装 lua 的时候遇到的错误和解决办法~~~
- mysql-5.6.27源码安装及错误解决办法
- U盘安装Centos 7 dracut_initqueue xxx 错误问题解决办法
- ubuntu源码编译安装php常见错误解决办法
- mysql-5.6.27源码安装及错误解决办法
- linux/centos安装nginx常见错误及解决办法
- Praat在CentOS 6.5中安装出现./praat /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.18' not found错误的解决办法
- php源码编译安装时的一些常见错误解决办法
- 转:CentOS系统yum源配置修改、yum安装软件包源码包出错解决办法!
- centos 安装 mysql出现conflicts with file from package错误的解决办法
- centos安装pycurl出现src/module.c:723: error: ‘CURLPROTO_*’ undeclared错误的解决办法
- mysql源码包安装错误解决办法