Apache web server


Apache Web Server: Introduction and Installation


What is Apache web Server?

Apache is a most popular, freely available open source web server. A Web server accepts HTTP requests from web clients and serves them HTTP responses in the form of web pages that contains static (text, images etc) and dynamic (scripts) content.

According to the Apache Software Foundation:

The name 'Apache' was chosen from respect for the Native American Indian tribe of Apache, well-known for their superior skills in warfare strategy and their inexhaustible endurance. It also makes a cute pun on "a patchy web server" -- a server made from a series of patches -- but this was not its origin. The group of developers who released this new software soon started to call themselves the "Apache Group".



Installation

When correct DNS has setup and the server has Internet access, we can configure Apache to accept http requests from client wanting to access our Web site.

Apache Daemon

All process mentioned here is valid for Red Hat Linux. For Red Hat Linux Apache daemon is httpd, if you are using other version of Linux or UNIX, Ubuntu or Debian you should use apache or apache2 daemon as your version specify. The installation process is same for all Version of Linux, the only changes is that you have to use correct daemon and installation command as per your Linux version.


Steps


First search if http package is installed or not using

# rpm -q httpd*


If http package is not installed then install it using yum or rpm package

# yum install httpd*


Now make sure that services will start when system boots

# chkconfig httpd on


Now start the httpd dervices

# service httpd start

or

# /etc/init.d/httpd start


Before starting httpd services verify that the server has any active network connection.


Test the Apache

Default versions of httpd create a generic web server service which is sufficient for most basic operations. Once httpd service is running start web browser and enter a URL http://localhost or http://127.0.0.1 a default apache web page will open.





No comments: