Linux :Installing Apache on CentOS

Installing Apache on CentOS
Check to see if apache is installed:

[[email protected] ~]# 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:

[[email protected] ~]# service httpd start
Starting httpd: [ OK ]

Note: The default document root is “/var/www/html/”.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.