Apache2: Could not reliably determine the server's fully qualified domain name
Apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Problem situation:
[c-sharp] view plaincopy
$sudo / etc/init.d/apache2 restart
* Restarting web server apache2
Apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Resolution steps:
To solve this problem, you need to edit the following httpd.conf file, open it, and edit it as follows:
[c-sharp] view plaincopy
Sudo gedit / etc/apache2/httpd.conf
The default httpd.conf is an empty file. Now add the following content to it:
[c-sharp] view plaincopy
ServerName localhost
You can change it to your own website domain name, such as www.baidu.com.
Save and exit.
Finally, restart the server:
[c-sharp] view plaincopy
Sudo / etc/init.d/apache2 restart
Http://blog.csdn.net/firstboy0513/article/details/5866133