AH00558: apache2: 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

By | 19/01/2022

Last Updated on 16/02/2025 by administrator

AH00558: apache2: 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

Problém:

Hláška AH00558: apache2: 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 se může objevit při použití příkazu sudo apache2ctl configtest, service apache2 restart či sudo systemctl restart apache2.

Řešení:

Otevřít apache2.conf v lokaci /etc/apache2/:

sudo vi /etc/apache2/apache2.conf

Přidat úplně nakonec příkaz níže:

ServerName localhost

Restartovat Apache server:

sudo systemctl restart apache2

nebo pomocí:

service apache2 restart

Věřím, že tento článek AH00558: apache2: 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 pomohl

Zdroj:

[1] https://dev.to/ayekpleclemence/could-not-reliably-determine-the-server-s-fully-qualified-domain-name-using-127-0-1-1-for-servername-error-on-ubuntu-4gc9

Napsat komentář

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *