comment 0

How to Installing Apache2 on CentOS

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.

Apache httpd has been the most popular web server on the Internet since April 1996, and celebrated its 15th birthday as a project this February.

I will share about how to install Apache2 on CentOS .


Sponsored links



Apache2 is available as a CentOS package, therefore we can install it like this:

yum install httpd

Now configure your system to start Apache at boot time…

chkconfig --levels 235 httpd on

… and start Apache:

/etc/init.d/httpd start

Now direct your browser to your server address, and you should see the Apache2 placeholder page:

browser-result-from-apache2-installation
browser-result-from-apache2-installation

Apache’s default document root is /var/www/html on CentOS, and the configuration file is /etc/httpd/conf/httpd.conf. Additional configurations are stored in the /etc/httpd/conf.d/ directory.

Leave a Reply

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