解决httpd: Could not reliably determine the server’s fully qualified domain name, using ::1 for ServerName

  • A+

CWP问题httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName解决方法

网络营销从业者在VPS安装完CWP控制面板,使用Linux命令重启httpd ▼

service httpd restart

之后,SSH就出现如下提示的问题 ▼

Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualifie domain name, using ::1 for ServerName

解决方法

第 1 步:找到httpd.conf文件

这是CWP控制面板httpd.conf文件的具体路径 ▼

/usr/local/apache/conf/httpd.conf

第 2 步:编辑Apache文件

我们可以在CWP控制面板,点击Apache Settings→Apache Configuration直接对此文件进行编辑。

第 3 步:编辑httpd.conf文件

在httpd.conf文件中添加 ▼

ServerName localhost:80

第 4 步:接着,重启httpd服务即可:

service httpd restart

第 5 步:返回如下结果,表示此问题已经成功解决好了!

Stopping httpd: [ OK ]
Starting httpd: [ OK ]

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: