Apache错误提示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

Apache出现错误提示

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the ‘ServerName' directive globally to suppress this message

谷歌翻译:AH00558:httpd:使用:: 1无法可靠地确定服务器的完全限定域名。 设置全局的“ServerName”指令以抑制此消息。

解决方法

1)SFTP客户端登录apache的安装路经(不同系统程序路经不同),这里以CWP控制面板为例:

/usr/local/apache/conf/

2)编辑httpd.conf文件

3)搜索“ServerName”

4)在#ServerName http://www.example.com:80下添加:

ServerName localhost:80

注意事项

“#”表示注释代码,不要有“#”。

5)按CTRL+SAVE保存。

6)SSH重新启动apache:

service httpd restart

 

希望陈沩亮博客( https://www.chenweiliang.com/ ) 分享的《Apache错误提示httpd: Could not reliably determine the server’s fully qualified domain name》,对您有帮助。

欢迎分享本文链接:https://www.chenweiliang.com/cwl-329.html

欢迎加入陈沩亮博客的 Telegram 频道,获取最新更新!

🔔 率先在频道置顶目录获取宝贵的《ChatGPT 内容营销 AI 工具使用指南》!🌟
📚 这份指南蕴含价值巨大,🌟难逢的机遇,切勿错失良机!⏰⌛💨
喜欢就分享和按赞!
您的分享和按赞,是我们持续的动力!

 

发表评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注

滚动到顶部