Error en Apache de ServerName

El servidor web Apache puede ser que nos de el siguiente error a la hora de instalarlo o reiniciarlo en Ubuntu:

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

Este problema viene porque no esta seguro del nombre del servidor ya que el localhost apunta a la 127.0.0.1. Para solucionar este problema simplemente debemos editar el archivo de configuración de Apache:

$ sudo nano /etc/apache2/apache2.conf

Y añadir la siguiente línea:

ServerName localhost

Ahora solo hay que reiniciar el Apache y ya estará solucionado:

$ sudo service apache2 restart

Un Comentario

  1. Walter

    Me surgió el siguiente problema, que puede ser ? Gracias de ante mano.

    soporte@ma:/opt/otrs$ sudo service apache2 restart
    * Restarting web server apache2 [Tue May 19 09:50:18.447324 2015] [alias:warn] [pid 14906:tid 3074202240] AH00671: The ScriptAlias directive in /etc/apache2/sites-enabled/otrs.conf at line 5 will probably never match because it overlaps an earlier ScriptAlias.
    [Tue May 19 09:50:18.454036 2015] [alias:warn] [pid 14906:tid 3074202240] AH00671: The Alias directive in /etc/apache2/sites-enabled/otrs.conf at line 6 will probably never match because it overlaps an earlier Alias.
    (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
    (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    AH00015: Unable to open logs
    Action ‘start’ failed.
    The Apache error log may have more information.
    [fail]
    * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems

  2. Walter

    Hice un Stop and Start y me tira unos Warnig:

    soporte@ma:/opt/otrs$ sudo service apache2 restart
    * Restarting web server apache2 [Tue May 19 09:58:34.054125 2015] [alias:warn] [pid 15142:tid 3073870464] AH00671: The ScriptAlias directive in /etc/apache2/sites-enabled/otrs.conf at line 5 will probably never match because it overlaps an earlier ScriptAlias.
    [Tue May 19 09:58:34.054292 2015] [alias:warn] [pid 15142:tid 3073870464] AH00671: The Alias directive in /etc/apache2/sites-enabled/otrs.conf at line 6 will probably never match because it overlaps an earlier Alias.
    [ OK ]
    soporte@ma:/opt/otrs$

Deja un comentario