I really like Debian based linux, and I really prefer apt to yum. Searching packages from apt is easier than from yum in my humble opinion. CentOS rename the package the same as RedHat I supposed, apache cannot be found from yum list
. A search with yum search apache
revealed that the package is named httpd.i686.
yum install httpd.i686 -y
To start apache use /etc/init.d/httpd start
Use chkconfig | grep httpd
to check if httpd is running on different run level.
Use ps -ef | grep httpd
to check if httpd process is available.
To configure apache webserver edit the file /etc/httpd/conf/httpd.conf