解决 apache启动错误httpd:Could not reliably determinethe server's fully qualified domain
问题
找到自己这个文件,视自己的安装情况.
# find / -name httpd.conf 若找不到.
# vim /usr/local/apache2/etc/httpd.conf
添加 ServerName localhost:80
重启报错:
apache2 address already in use:make_sock:could not bind to address [::]:80
此错误为端口被占用,只有进入root用户,才可以查看所有端口被占用的情况.
# netstat -lnp | grep 80
在安装完apache2之后的默认index.html网页里面输入文字显示乱码,修改AddDefaultCharset 也没有用,即使在网页头部添加meta,指定charset=GB2312|GBK也没有用
注: 此处因为默认文档的字号为h1,大号字体,中文无法显示,此处修改为小号字体即可,本人修改为h5,乱码消失,正常显示中文!
在网页运行html文件调用cgi程序时,提示找不到cgi程序以及找到程序后得不到想要的结果。
首先查看apache2配置文件,在/etc/apache2/site-enables查看系统默认的cgi-bin目录,可以在这个里面根据需要来修改默认cgi-bin目录。apt安装完后默认的cgi-bin目录是在/usr/lib/cgi-bin/
具体是修改ScriptAlias参数,如果你不知道你的类似site-enables的目录在哪,毕竟各个版本有些不一样,可以直接搜索ScriptAlisa这个参数,因为不管哪个版本,这个参数基本没改动。
如果还是出现问题. 那么可能是由于编译环境的差异造成的,这个时候可能要根据你的编译环境来修改你写的源代码.
解决 apache启动错误httpd:Could not reliably determinethe server's fully qualified domain相关推荐
- 解决apache启动错误:Could not reliably determine the server's fully qualified domain name
启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [root@serv ...
- 解决httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for Se ...
- httpd: Could not reliably determine the server's fully qualified domain name
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for Se ...
- 解决apache启动错误 AH00558: httpd: Could not reliably determine...
[root@localhost httpd-2.4.7]# /usr/local/httpd/bin/apachectl start AH00558: httpd: Could not reliabl ...
- 解决Apache启动错误Could not reliably determine the server‘s fully
启动Apache时经常会遇到如下问题: 报错内容:httpd[4018]: AH00558: httpd: Could not reliably determine the server's full ...
- Apache windows启动时报错 httpd: Could not reliably determine the server's fully qualified domain name...
Apache windows启动调试时报错或警告 httpd: Could not reliably determine the server's fully qualified domain nam ...
- 解决AH00558: httpd: Could not reliably determine the server‘s fully qualified domain name, using local
1.启动apache遇到错误: httpd: Could not reliably determine the server's fully qualified domain name 2·.修改ht ...
- Apache启动时报Could not reliably determine the server's fully qualified domain name
在系统启动时apache,没有启动起来,查看"事件查看器"发现报一些错误: The Apache service named reported the following err ...
- 解决httpd: Could not reliably determine the server's fully qualified domain name
启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [root@serv ...
最新文章
- 三维重建【一】——————(深度学习方式)
- 使用phpize安装php模块
- 改变软件开发者的形象,增加多样性
- case when mysql_mysql条件语句case when的实例
- mysql privileges
- Python学习笔记:利用Pyforest导入本地已安装的库
- 物联网技术或颠覆传统高等教育
- 编译原理文法等价变换
- 计算机专业国培总结,2016年信息技术教师国培心得体会(2篇)
- 基于STM32完成FATFS文件系统移植与运用--这是完全免费开源的FAT文件系统
- 浅谈地下污水处理厂电气特点和能效管理系统的实际应用
- html好看css标题样式,比较好看的css 自定义样式(标题 h1 h2 h3)
- C++ P1510 精卫填海
- 《战狼Ⅱ》豆瓣十二万影评浅析
- Python+Vue计算机毕业设计网上美妆购物商城8k7w5(源码+程序+LW+部署)
- 一仓库失窃,四管理员被传讯_如何找到丢失或失窃的Android手机
- 转 CSS兼容技巧整理--从IE6-IE9 火狐谷歌浏览器兼容
- python编写计算二项式值_python二项式期权定价方法
- python自动获取某网站二次元图片下载
- 一份诚恳的互联网找工作总结和感想(附:怎样花两年时间去面试一个人)