Apache DevCenter

oreilly.comSafari Books Online.Conferences.

We've expanded our LAMP news coverage and improved our search! Search for all things LAMP across O'Reilly!

Search
Search Tips

advertisement

Print Subscribe to Apache Subscribe to Newsletters

Getting, Installing, and Running Apache
by Rael Dornfest | Pages: 1, 2, 3

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:

rpm -qa | grep apache
If you see something like 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 RedHat/RPMS directory on the installation CD. Or, point your Web browser at ftp://ftp.redhat.com/pub/redhat/current/i386/RedHat/RPMS or one of the many mirror sites 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 apache-1.3.9-4.i386.rpm.

rpm -ivh apache-1.3.9-4.i386.rpm
RPM should grind away, displaying its progress with a primitive ####### progress bar. Barring any errors, you're done.

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.

Pages: 1, 2, 3

Next PageNext




Recommended for You

Tagged Articles

Be the first to post this article to del.icio.us

Sponsored Resources

  • Inside Lightroom
Advertisement

Sponsored by:

Sign up today to receive special discounts,
product alerts, and news from O'Reilly.
Privacy Policy >
View Sample Newsletter >
  • Youtube
  • http://www.youtube.com/OreillyMedia
  • Twitter
  • Subscribe
  • View All RSS Feeds >
O'Reilly Media

800-889-8969 or 707-827-7019
Monday-Friday 7:30am-5pm PT
©2011, O'Reilly Media, Inc.
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
  • About O'Reilly
  • Academic Solutions
  • Contacts
  • Customer Service
  • Careers
  • Press Room
  • Privacy Policy
  • Terms of Service
  • Writing for O'Reilly
  • Community
  • Authors
  • Forums
  • Membership
  • Newsletters
  • RSS Feeds
  • User Groups
  • Partner Sites
  • makezine.com
  • makerfaire.com
  • craftzine.com
  • igniteshow.com
  • PayPal Developer Zone
  • O'Reilly Insights on Forbes.com