Apache Web Server

The Apache HTTP Server is an open-source HTTP server that runs both on UNIX and Windows. Apache has been the most popular web server on the Internet since April of 1996. The September 2006 Netcraft Web Server Survey reports that 63.25% of the web sites on the Internet are using Apache, thus making it more widely used than all other web servers combined.

To assist you in getting your web server up and running on the CDF infrastructure, there are a few files provided here. Copy the files to a directory somewhere under your home directory from which you will be running your web server. To get your web server running you have to run the bin/start.sh script and enter the port number you were assigned for the listener to bind to. A list of assigned port numbers is available here. The start.sh script will create the configuration file conf/httpd.309.conf

To check if your web server is running, issue the command (on CDF):

/bin/ps -u your_user_id | grep httpd

and you should see something like:

1138 ? 0:00 httpd
1137 ? 0:00 httpd

Note that there are two httpds. You can now point your browser at http://localhost:your_port_number and you will see the index.html file displayed in your browser. To stop your web server, run the bin/stop.sh script. Always remember to stop your web server before logging off CDF.

The start.sh script also creates a logs directory under the server's root folder. When your apache server is running the logs directory will contain at least one log file as well as an http.pid file. The log file(s) will contain error information which is helpful for debugging, and the .pid file contains the process id of the web server.

You can also install and run the Apache HTTP server on Microsoft Windows platforms. Detailed instructions for downloading and installing Apache on Windows are available here.