Linux :Installing Apache on CentOS

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

[root@K ~]# rpm -q httpd

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/”.

Leave a Reply

Your email address will not be published. Required fields are marked *

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