Installing Apache on CentOS
Check to see if apache is installed:
[root@K ~]# rpm -q httpd
httpd-2.2.3-7.el5.centos
If not just type “yum install httpd” and when the install is done, start apache:
[root@K ~]# service httpd start
Starting httpd: [ OK ]
Note: The default document root is “/var/www/html/”.