Home  >  Article  >  Operation and Maintenance  >  Apache2启动错误Could not reliably determine the server's fully qualified domain name

Apache2启动错误Could not reliably determine the server's fully qualified domain name

PHP中文网
PHP中文网Original
2017-06-19 11:24:518676browse
Error condition:

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

If the above situation occurs, just modify the Apache configuration file:

Add a line to the configuration file apache2.conf

ServerName localhost:80

Then just restart the Apache service

sudo /etc/init.d/apache2 restart

The above is the detailed content of Apache2启动错误Could not reliably determine the server's fully qualified domain name. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn