安装Apache时可能会遇到的问题

发布时间:2020-07-05 21:22:25 作者:M四月天
来源:网络 阅读:433


configure错误提示1:

configure:error: in `/usr/local/src/httpd-2.2.21/srclib/apr':
configure:error: no acceptable C compiler found in $PATH
See `config.log'for more details.

解决方法:

yum install -y gcc 



configure错误提示2:

checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

解决方法:

yum install -y zlib-devel



make前为了防止报错可先安装一些库文件:

yum install -y pcre pcre-devel apr apr-devel



启动Apache错误提示:

httpd: Could not reliably determine the server's fully qualified domain name, using 180.16                8.41.175 for ServerName

解决方法:

vim /usr/local/apache2/conf/httpd.conf

ServerName www.example.com:80   //去掉前面的注释符#  如下
ServerName www.example.com:80






推荐阅读:
  1. 登录cookie时遇到的问题
  2. SVN合代码时遇到的问题

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

php apache configure

上一篇:spring security和shiro的异同

下一篇:第八章 磁盘操作-centos7.5知识

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》