首页 > 开发 > Apache > 正文

apache启动时出现AH00558怎么办?

2020-07-28 15:02:47
字体:
来源:转载
供稿:网友
 在apache启动时,如果出现了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.conf中的ServerName改成可用域名或如下配置:
  ServerName localhost:80,(不要和现有端口冲突就可)
  在windows下开启apache,发现端口被占用,看了host.conf里面配置的listen端口是80,但是提示是443,奇怪了,查了下资料,原来443是apache-ssl的端口。
  那就查一查是谁占用了:
  netstat -ano|findstr "443"
  1
  然后根据进程号 17208 继续查找:
  tasklist|findstr "17208"
  1
  可见433由vmare占用,然后打开“任务管理器”找到 vmare-hostd.exe这个进程关掉就可以。
  方案1:进入Apache的安装目录,搜索httpd-ssl.conf,右击文本打开。寻找443替换成其他不常用的端口号,比如442。接下来就可以正常启动Apache了。
  方案2:直接关闭Apache的SSL模块, 反正暂时还用不到,/xampp/apache/confhttpd.conf文件,#LoadModule ssl_module modules/mod_ssl.so 和#Include conf/extra/httpd-ssl.conf
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表