Package

Document Sample
Package Powered By Docstoc
					              Compiling and Installing Apache HTTPS Server


The instructions below can be used for installing Apache with SSL(mod_ssl) in the Mosaic Solaris
enviroment.

1. Obtaining Required Packages
   To use mod_ssl you need to download following packages

   1. Apache 1.3.12

       Package: apache_1.3.12.tar.gz
       Download site: http://www.apache.org/dist/apache_1.3.12.tar.gz.

   2. mod_ssl 2.6.3

       Package: mod_ssl-2.6.3-1.3.12.tar.gz
       Download site: ftp://ftp.modssl.org/source/mod_ssl-2.6.3-1.3.12.tar.gz.

   3. OpenSSL 0.9.5

       Package: openssl-0.9.5.tar.gz
       Download site: ftp://ftp.openssl.org/source/openssl-0.9.5.tar.gz.

   4. RSAref 2.0

       Package: rsaref20.tar.Z
       Download site: ftp://ftp.ai.mit.edu/pub/deberg/rsaref20.tar.Z

   5. MM 1.1.1

       Package: mm-1.1.1.tar.gz
       Download site: http://www.engelschall.com/sw/mm/mm-1.1.1.tar.gz.

   If any of the download sites above is no longer available, please go to
   http://ftpsearch.lycos.com to search the current available download location.

2. Extracting the File’s Contents
   Download those required packages to a temporary directory (for example, temp directory). Extract the
   packages with the following command:

   $ cd temp
   $ gzip -d -c apache_1.3.12.tar.gz | tar xvf -
   $ gzip -d -c mod_ssl-2.6.3-1.3.12.tar.gz | tar xvf -
  $   gzip -d -c openssl-0.9.5.tar.gz | tar xvf -
  $   gzip -d -c mm-1.1.1.tar.gz | tar xvf -
  $   mkdir rsaref-2.0
  $   cd rsaref-2.0
  $   gzip -d -c ../rsaref20.tar.Z | tar xvf –
  $   tar xvf rsaref.tar

3. Configure and build the OpenSSL library:
  When you're an US-citizen you have to build OpenSSL in conjunction with the RSAref library.

  $ cd $HOME/temp/rsaref-2.0
  $ cp -rp install/unix local
  $ cd local
  $ make
  $ mv rsaref.a librsaref.a
  $ cd $HOME/temp/openssl-0.9.5
  $ sh config \
       -L`pwd`/../rsaref-2.0/local/ rsaref
  $ make
  $ make test
  $ cd ..

4. Build the MM Shared Memory library (Optional)
  Optionally you now can build the MM Shared Memory library when you want shared memory support
  in Apache/EAPI. For instance this allows mod_ssl to use a high-performance RAM-based session
  cache instead of a disk-based one.

  $   cd mm-1.1.1
  $   ./configure --disable-shared
  $   make
  $   cd ..

5. Configure the Apache sources and build Apache with mod_ssl and
   OpenSSL
  You configure Apache semi-automatically from within mod_ssl's `configure' script.
      $ cd $HOME/temp/mod_ssl-2.6.3-1.3.12
      $ ./configure \
               --with-apache=../apache_1.3.12 \
               --with-ssl=../openssl-0.9.5 \
               --with-rsa=../rsaref-2.0/local \
               --with-mm=../mm-1.1.1 \                                         OPTIONAL
               --with-crt=/<path-to-your-server.crt> \
               --with-key=/<path-to-your-server.key> \
               --prefix=/<your-path-to-apache> \
               --enable-shared=ssl \                                           OPTIONAL
               --disable-rule=SSL_COMPAT \                                     OPTIONAL
               --enable-rule=SSL_SDBM \                                        OPTIONAL
               --enable-rule=SSL_EXPERIMENTAL \                                OPTIONAL
               --enable-rule=SSL_VENDOR \                                      OPTIONAL
               [...more APACI options...]                                      OPTIONAL
6. Compile and install
  $ cd $HOME/temp/apache_1.3.12
  $ make

  Install the Apache server by running this command:

  $ make install

  By now you have successfully built and installed the Apache 1.3 HTTP server. To verify that Apache
  actually works correctly you now should first check (initially created or preserved) the configuration
  files:

            /<path-to-apache-home-directory>/conf/httpd.conf

  You should modify or uncomment the following lines with the information of the machine on which
  you installed the server. For example, if the machine has IP address as "152.15.12.60" and hostname as
  “ws410.uncc.edu", you should configure the corresponding lines as:

      Listen 152.15.12.60:8080

      Port 8080

      <IfDefine SSL>
      Listen 8080
      Listen 8443
      <IfDefine SSL>

      ServerName ws410.uncc.edu

7. Try out Apache without SSL (only HTTP protocol possible):
  $ /path/to/apache/sbin/apachectl start
  $ netscape http://<local-host-name>:8080/
  $ /path/to/apache/sbin/apachectl stop

8. Try out Apache with SSL (both HTTP and HTTPS)
  $   /path/to/apache/sbin/apachectl startssl
  $   netscape http://<local-host-name>:8080/
  $   netscape https://<local-host-name>:8443/
  $   /path/to/apache/sbin/apachectl stop

  NOTE: When the above tests (steps 7 and 8) fail for some reasons you are strongly advised to look into
  the Apache error logfile before you ask someone other for help. In the error logfile there should be a
  hint where to find the reason for the failure.

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:3
posted:11/5/2012
language:English
pages:3