Wednesday, December 25, 2013

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

Ievēroju, ka pēc sistēmas pārlikšanas, apache visu laiku izdot šādu kļūdiņu:
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
Serveris iet, bet tāpat nepatīkami.

Risinājums:
Jāuzdod hosta vārds pēc noklusējuma failā /etc/apache2/apache2.conf:
ServerName localhost

Parametrs ServerName jāuzstāda tieši failā apache2.conf, bet nevis httpd.conf! Ar šo cīnījos ļoti ilgi :)

Pēc tam sudo service apache2 restart un viss kārtībā!

No comments: