The Apache Web Server When you’ve selected the packages you need, click the Close button to dismiss the Web Server Package Details window, and then click the Update button on the on main Package Management window to begin the installation. During the installation, you’ll be prompted to insert the distribution discs, as they’re required. The RPM will also inform you of any conflict between package dependencies. The Apache Configuration Files Apache’s configuration information is contained in a select bunch of configuration files: The /etc/httpd/httpd.conf file is Apache’s main configuration file. The /etc/httpd/conf.d directory contains configuration files for any installed modules (such as PHP, SSL, and so on). The /etc/httpd/logs directory is a symbolic link to /var/log/httpd directory, which contains all the Apache log files. The /etc/httpd/modules directory is a symbolic link to /usr/lib/httpd/modules directory, which contains all the Apache modules configured as dynamic shared objects. Note Dynamic shared objects (or DSOs) are modules that are compiled separately from the Apache httpd binary. They are so-called because they can be loaded on demand. There’s more information on DSOs at http://httpd.apache.org/docs-2.0/mod. The /etc/httpd/run directory is a symbolic link to /var/run, which contains the process ID file (httpd.pid) of the httpd process. /etc/rc.d/init.d/httpd is a shell script, used for starting and stopping the Apache web server. Starting Apache for the First Time You can start Apache using the Red Hat Service Configuration GUI dialog, or via the command line. Here’s how to start Apache from the Service Configuration dialog: 1. First, you need to fire up the GUI. To do this, click on Main Menu | System Settings | Server Settings | Services or type the following at the command line: $ redhat-config-services It will ask for root password if you started it as a normal user. When you do this, you get the Service Configuration dialog: 273
Note: If you are looking for cheapest and affordable webspace to host and run your servlet application check Astra j2ee hosting services