Docstoc

Apache Apache with SSL on

Document Sample
Apache Apache with SSL on Powered By Docstoc
					             Apache with SSL
             on Redhat Linux




This documentation is available on the web at:
http://www.unc.edu/~stmartin/Apache1.html

The current version you are reading may not be the latest version
Please see the web documentation for the latest version.
Purpose of this Document
This is a series of instructions on how to install Apache on Linux (in this case, Redhat).

This is useful if you would like to run a web server with encryption in an Open Source
format.


Logon as Root
First you need to log on as root in the terminal window. In Redhat Linux, this can be
found in ApplicationsSystem ToolsTerminal

Type su – root


Verify you do not already have Apache installed:
Some installations of Linux include various aspects of LAMP (Linux Apache MySQL
PHP): Redhat, for example, can install PHP automatically.

To find (and remove) existing RPM’s use the rpm – qa command and pipe it to Grep:

rpm -qa | grep -i apache
rpm -qa | grep -i httpd
rpm -qa | grep -i openssl
rpm -qa | grep -i mod_ssl
rpm -qa | grep -i mod_perl
to remove the rpm’s, type
rpm –e filename
To make it easier, I recommend copying and pasting (shift+insert) the names of the files
into the statement.

I had some difficulty because I already had some basic PHP and MySQL functionalities
installed. I tried to delete them as best as I could, and ran the rpm – qa command as much
as possible to narrow them down, but ultimately gave up (since I don’t know how to
uninstall software in Linux yet), hoping it wouldn’t interfere later with the LAMP install
(yeah, right).
I recommend you navigate to the folder you want to download the new rpms to. In this
case, I used usr/local/src

Download the Tarballs

To get the basic tar files including the necessary downloads, type:
wget http://downloads.mysql.com/archives/mysql-4.0/mysql-4.0.26.tar.gz
wget http://www.php.net/distributions/php-4.4.2.tar.gz
wget http://apache.oregonstate.edu/httpd/apache_1.3.34.tar.gz
wget http://www.modssl.org/source/mod_ssl-2.8.25-1.3.34.tar.gz
wget http://www.openssl.org/source/openssl-0.9.8a.tar.gz
wget http://perl.apache.org/dist/mod_perl-1.29.tar.gz

Note: All you really need is the Apache (and perhaps the perl one) one, but I've included
all LAMP URL's here for people who want to install MySQL and and PHP if they don't
have it.

To extract the rpms type
tar zxf php-4.4.2.tar.gz
tar zxf apache_1.3.34.tar.gz
tar zxf mysql-4.0.26.tar.gz
tar zxf mod_ssl-2.8.25-1.3.34.tar.gz
tar zxf openssl-0.9.8a.tar.gz
tar zxf mod_perl-1.29.tar.gz
Change directory to /usr/local/src/mysql-4.0.26

Type
Make clean

Next copy the following configuration lines into the command prompt. I don’t know why
they work (since I couldn’t get a man or help on the configuration file) but it seems to
work.

./configure \
--prefix=/usr/local/mysql \
--localstatedir=/usr/local/mysql/data \
--disable-maintainer-mode \
--with-mysqld-user=mysql \
--with-unix-socket-path=/tmp/mysql.sock \
--without-comment \
--without-debug \
--without-bench

Next you need to compile them. Type
Make && make install
This should take a while to run.

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:10
posted:12/4/2011
language:English
pages:5