Apache
  Home arrow Apache arrow Page 3 - Getting Started with Apache
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Actuate Whitepapers 
VeriSign Whitepapers 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
APACHE

Getting Started with Apache
By: Apress Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 16
    2004-12-13

    Table of Contents:
  • Getting Started with Apache
  • Installing Apache
  • Installing Apache from Binary Distribution
  • Installing Apache from Prebuilt Packages
  • Installing Apache by Hand
  • Upgrading Apache
  • Basic Configuration
  • Administrator’s E-Mail Address
  • Starting, Stopping, and Restarting the Server
  • Generic Invocation Options
  • Windows-Specific Invocation Options
  • Testing the Server
  • Testing the Server Configuration Without Starting It
  • Using Graphical Configuration Tools

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Getting Started with Apache - Installing Apache from Binary Distribution


    (Page 3 of 14 )

    Binary distributions are archived copies of the compiled Apache source and contain a complete Apache server, all supporting scripts and configuration files, a complete copy of the source code, and an installation script to install the server into the desired location. They don’t, however, contain scripts to automatically start and stop Apache with the operating system.

    Distributions are available for several variants of Unix, OS/2, Netware, BeOS, and MacOS X from the Apache home page at http://www.apache.org/dist/httpd/binaries/. Refer to the “Installing Apache from Prebuilt Packages” section for more information.

    NOTE Linux administrators will find packages under the linux subdirectory, and you can find Solaris packages similarly under solaris.
    MacOS X administrators
    will also find distributions for MacOS X/Darwin—the darwin and macosx subdirectories have the same contents, so either will do—as well as MacOS X Server/Rhapsody, similarly in macosxserver or rhapsody .Windows packages for Windows 9x ,ME, NT, 2000, and XP are also available from this location. Both self-installing and Windows installer packages are available, but these aren’t basic binary distributions as described here.

    On platforms for which binary distributions are available, you can download and install Apache with only a few steps.

    Using Unix as an example, first download either the compress archive (suffix .Z) or the gzip archive (suffix .gz). For other platforms, such as OS/2, you may also find a ZIP archive available. Because gzipped archives are compressed more efficiently than compressed ones, you should get the gzip archive if you have gzip available to decompress it. If you don’t, this might be a good time to install it.

    Once the archive is downloaded, unpack it:

    $ gunzip apache_1.3.28-i686-whatever-linux22.tar.gz
    $ tar xvf apache_1.3.28-i686-whatever-linux22.tar

    This archive is for a Linux server, kernel version 2.2 or higher, running on a machine with at least an Intel Pentium II processor. Archives for other platforms are named appropriately in the relevant platform subdirectory. When a platform is available for more than one processor architecture, as Linux is, be careful to download the correct binary distribution—a Sparc or Alpha distribution is of little use to an Intel server, for example.

    You can also extract the archive in one step, leaving the archive in a compressed state to conserve disk space:

    $ gunzip -c apache_1.3.28-i686-whatever-linux22.tar.gz | tar xvf -

    On systems with the GNU version of tar, which includes all Linux and BSD platforms, you can also extract the archive in one step (note the extra z in zxvf to signify that the archive is compressed):

    $ tar zxvf apache_1.3.28-i686-whatever-linux22.tar.gz

    On systems that don’t have gzip installed, download the .Z archive and use the standard Unix uncompress utility instead:

    $ uncompress apache_1.3.28-i686-whatever-linux22.tar.Z

    This is actually the most complex part of the process. Once the archive is unpacked, go into the newly created Apache directory:

    $ cd apache_1.3.28

    Then run the included installation script:

    $ ./install-bindist.sh

    If you want to install Apache somewhere other than /usr/local/apache, give the installation script the path you want to use, for example:

    $ ./install-bindist.sh /home/httpd/

    This should produce a working Apache installation in the desired location. If you’re installing on a Unix server and want to install into a standard system location, you’ll need to have root privileges to perform this step. After the installation is complete, you may remove both the archive and the unpacked archive directory. You’re now ready to configure Apache.

    An interesting point of binary distributions is that you can create them yourself, using the source distribution. This allows you to create a fully customized server that matches your needs and then distribute it yourself. The created binary distribution is the same as the standard distribution in all respects except for the customizations you make.

    NOTE Creating and installing your own binary distribution is covered in Chapter 3.

    Installing Apache from Source

    As mentioned, you can also download Apache source distributions from the official Apache site. They’re located in http://www.apache.org
    /dist/httpd/
    and come in either ZIP format (.zip) or gzip format (.gz).

    Again, mirrors exist, and you should use the mirror closest to you—note that choosing the Download from a Mirror link from the main site should select a suitable mirror automatically. Once downloaded, the source can be compiled using Microsoft Visual C++ compiler on Windows and gcc on most other platforms. This is the major subject of Chapter 3, so I’ll not dwell on it further here. 

    This chapter is from Pro Apache by Peter Wainwright. (Apress, 2004, ISBN: 1590593006). Check it out at your favorite bookstore today. Buy this book now.

    More Apache Articles
    More By Apress Publishing


       · How many intro to Apache articles does the Developer Shed network need?
       · As many as we feel like posting ;)
       · And as many as the community feel like reading...
     

       

    APACHE ARTICLES

    - Creating a VAMP (Vista, Apache, MySQL, PHP) ...
    - Putting Apache in Jail
    - Containing Intrusions in Apache
    - Server Limits for Apache Security
    - Setting Permissions in Apache
    - Installing Apache
    - Apache Installation and Configuration
    - Apache Tapestry and Custom Components: DateI...
    - Tapestry and AJAX: Autocompleter and InlineE...
    - PropertySelection and IPropertySelectionMode...
    - The DatePicker and Shell Components of Apach...
    - Apache Tapestry: ASO and More Components
    - Apache Tapestry and DirectLink, IoC and DI
    - Making a CelebrityCollector with Apache Tape...
    - Apache Tapestry and Listener Methods, Condit...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway