环境:x86 ubuntu 12.10
在初次安装完lamp,重启apache的时候,可能会出现下面的问题。
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
解决的办法是在 /etc/apache2/sites-available 下 default 文件的开头添加
ServerName localhost
然后重启apache
/etc/init.d/apache2 restart