Sometimes when you reload Apache service you will get a warning message “could not reliably determine the servers fully qualified domain name apache2″. This is just a warning message and things won’t stop.
You can remove this annoying message to just have to tell Apache that what is your server name.
vi /etc/httpd/conf/httpd.conf in centos or RHEL
you can get your hostname using hostname command run this in terminal
and add this name in your config file.
make sure this entry also exist in your host file
and add your IP and host name here
127.0.0.1 localhost.localdomain (your hostname)
You won’t get any warning message this time. 😀