Provavelmente você já enfrentou o seguinte erro enquanto você reiniciar o servidor Apache no Ubuntu.
$ 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 … waiting apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName |
Para corrigir esse problema, você precisa editar o arquivo httpd.conf. Abra o terminal e digite,
$ sudo gedit /etc/apache2/httpd.conf |
O httpd.conf pro padrão ficará em branco. Agora, basta adicionar a seguinte linha ao arquivo.
ServerName localhost |
Salve o arquivo e saia do gedit.
E por fim reiniciar o servidor.
$ sudo /etc/init.d/apache2 restart |
Faça seu comentário