To configure a server as web server using apache.
you need to install apache but since linux comes with apache you only need to configure httpd.conf file in /usr/local/apache/conf dirrectory. Apache may be install in a different directory on your server
issue a
find / -name httpd.conf
to find the location of your httpd.conf file
you need to configure the httpd.conf with server name, location of html file and some security setting.
more details can be found on
www.apache.org
after configuring httpd.conf file you need to restart apache
this can be restart by ./apachectl start
finally issued
ps -ef | grep httpd
To make sure httpd is running