Installing Linux from this book's companion DVD-ROM gives you the option to install the Apache Web server. As described in Chapter 2, simply select the Web Server package group when you are prompted for the components to install. This package group includes the Apache Web server. The Web server program is called httpd, so the Apache Web server package is called httpd.
Perform these steps to verify that the Apache Web server software is installed on your system:
1. Type rpm -q httpd in a terminal window to check whether or not the Apache package is installed. Here is a typical output of that command:
If the output shows an httpd package name, you have installed the Apache software.
2. Type the following command to check whether or not the httpd process is running (httpd is the name of the Apache Web server program):
ps ax | grep httpd
If the Apache Web server is running, the output should show a number of httpd processes. It is common to run several Web server processes—one parent and several child processes — so that several HTTP requests can be handled efficiently by assigning each request to an httpd process. If there is no httpd process, log in as root and start the httpd service with the following command: service httpd start
3. Use the Telnet program on your Linux system, and use the HTTP HEAD command to query the Web server, as follows: telnet localhost 80
Connected to localhost.localdomain (127.0.0.1).
HEAD / HTTP/1.0 (press Enter twice)
HTTP/1.1 403 Forbidden
Date: Wed, 01 Jun 2005 20:33:52 GMT
Server: Apache/2.0.54 (Fedora)
Content-Type: text/html; charset=UTF-8 Connection closed by foreign host.
If you get a response such as that in the preceding code, your system already has the Apache Web server installed and set up correctly. All you have to do is understand the configuration so that you can place the HTML documents in the proper directory.
Use a Web server to load the homepage from your system. For instance, if your system's IP address is 192.168.0.100, use the URL http://192/168.0.100/ and see what happens. You should see a Web page with the title "Test Page for the Apache HTTP Server on Fedora Core."
According to the information about the Apache Web server project on www. apache.org/, the Apache group was formed in March 1995 by a number of people Secret who provided patch files that had been written to fix bugs in NCSA HTTPD 1.3. The result after applying the patches to NCSA HTTPD was what they called a patchy ^ server (that's how the name Apache came about).
According to the April 2005 Netcraft Web Server Survey at http://news .netcraft.com/archives/2005/04/index.html, the Apache Web server is the most popular —69.32 percent of 62,286,451 sites reported using the Apache server. Microsoft Internet Information Server (IIS) is a distant second, with 20.45 percent of the sites.
Was this article helpful?
This Report Will Show You How To Make Money By Providing Writing Services To Other Internet Marketers. Learn how to make money by writing the right way. Grab your copy of this report now and learn. Why writing is a great way to earn money. How to compete with cheap writers, even if you charge a lot more money.