martes, 15 de enero de 2013

Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName


No paro de recibir el siguiente mensaje en los log de parte de mi servidor apache (Ubuntu) y voy a solucionarlo.

$ 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 corregir este problema, necesitas editar el archivo /etc/apache2/httpd.conf abrelo en una terminal,

sudo nano /etc/apache2/httpd.conf

Por defecto el archivo httpd.conf está en vacio, simplemente escribe lo siguiente.

ServerName localhost

Guarda el archivo y cierra el editor, y finalmente reinicias el servidor.

sudo /etc/init.d/apache2 restart

No hay comentarios:

Publicar un comentario