Apache Installation
The below command will check whether apache packages are available on the server or not. It will show the listing if it is available on the server.
yum list httpd*
If packages are available then run the below command to install apache packages.
yum install httpd*
Now configure your system to start Apache at boot time…
chkconfig –levels 235 httpd on
Once done then restart the apache service.
/etc/init.d/httpd start