Installing the Apache Server

The toughest part of getting this software to work is installing it — and that's really simple. Installing the Apache Web Server with dselect works the same as installing any of the other packages included on the CD-ROM. You simply start the dselect program from a command prompt, select the Apache server version from the CD for installation, and then install the Apache server and any required packages. You are then offered to make any configuration changes during installation to complete the setup. These configuration settings include the server administrator's e-mail address.

You can perform the configuration of the server using apacheconfig any time after the initial setup completes. This script configures the Web server for its most basic function — serving pages to a network or the Internet. The script automatically configures Apache for you.

Note This gets set to [email protected] my do ami n . com, which can be aliased or redirected to the mailbox of the actual person in charge. (See Chapter 25 for details on aliasing email)

Finally, you can save the configuration settings and restart the Apache server.

The other option (besides dselect) is to download the source files from the Apache Web site ( for a complete installation from scratch. You can find the latest files for downloading at You have the choice of using binaries for all types of Linux flavors or getting the source code to compile yourself. Both methods include README instructions for installation. Follow those instructions for the smoothest installation.

The results of a successful installation are the same. You see a default Web page when looking through a Web browser at the machine. To accomplish this, open a Web browser and use http://localhost/ as the address for the Uniform Resource Locator (URL). This brings up the default Web page seen in Figure 21-1.

Figure 21-1: Hurray! A successful install

Note Apache comes in a Secure Socket Layer (SSL) version, which provides encrypted communication between the client and the server. This enables sites to pass data back and forth securely with little risk. The Apache-SSL version is available for install through the Debian installation files.

Installation and setup for Apache-SSL work the same as the regular Apache, but the SSL version includes additional security-related modules and directives. Search the Web site for more information about these features. Because of the encryption used, some areas of the world may not be permitted to use the SSL version.

Was this article helpful?

0 0

Post a comment