Using an RPM
Those of you running the RedHat Linux distribution may want to take advantage of RedHat's RPM ("RedHat Package Manager") system. Almost identical to a binary, an RPM is further customized to play nicely with other RPMs and provide a consistent interface to installing, updating, and removing binaries. I admit I'm not a great fan of packaged binaries. They often entail a loss of flexibility and clarity -- for instance, it's not readily apparent where the contents of some packages will end up. That said, for Linux newcomers or when installing a small standard component, RPMs are simple and reliable.
Bear in mind that an Apache RPM may already be installed on your system depending on how Linux was originally installed on your computer. To find out, at the shell prompt, type:
If you see something like
rpm -qa | grep apache
apache-1.3.9xxx, an Apache RPM has already been installed and you can skip on to "Starting Apache".
If you don't have an Apache RPM, you must obtain one. RedHat 6.1 ships with
apache-1.3.9-4.i386.rpm in the
directory on the installation CD. Or, point your Web browser at
or one of the many
and pick yourself up a copy. If you've not already done so, you'll
need to become root. Navigate to the same directory as the .rpm file
you obtained, and then type the following command, substituting the
name of the .rpm you're using for
RPM should grind away, displaying its progress with a primitive ####### progress bar. Barring any errors, you're done.
rpm -ivh apache-1.3.9-4.i386.rpm
If you're interested in learning how to install Apache from scratch, read on. Or, if you're just using the RPM section of this tutorial, you can skip on to Starting Apache.