Add following line in /etc/httpd/conf/httpd.conf
Code:
ServerName localhost
Restart Apache.
But this error does not prevent to start apache, it is a warning message you get this when you restart apache.
You are not able to open your site, may be apache is not started.
If above method does not help you, Provide more info about your non-working site.