Apache2 is available as a CentOS package, therefore we can install it like the following:
yum install httpd
Now configure your system to start Apache at boot time and start Apache:
chkconfig --levels 235 httpd on /etc/init.d/httpd start
Now open your browser to http://10.10.3.100 (this was my server IP), and you should see the Apache2 default page:
Apache’s default document root is /var/www/html on CentOS, and the configuration file is located at /etc/httpd/conf/httpd.conf. Additional configurations are stored in the /etc/httpd/conf.d/ directory.
Installing Apache is done!