I have just installed Apache 2.2.17, and I am using it first time.
Now when I try to start the server using the command service httpd start it gives me
service httpd start
sudo vim /etc/apache2/httpd.conf
ServerName localhost
sudo /etc/init.d/apache2 restart