Re: Openssl-9.6b and Apache/mod_ssl install


Subject: Re: Openssl-9.6b and Apache/mod_ssl install
From: Christopher Murtagh (christopher.murtagh@mcgill.ca)
Date: Mon Sep 03 2001 - 15:45:56 MDT


On Mon, 3 Sep 2001, Robert Brandtjen wrote:
>Ok, so I compiled and installed OpenSSL 9.6.b to /usr/local/ssl (default
>location.
>
>Can I just mv these files into the existing 9.6.a locations from the
>default YDL install, overwriting it? I want the system to see it and not
>just build apache 1.3.20 against it.

 Actually, I just compiled OpenSSL0.9.6b, Apache 1.3.20,
mod_ssl-2.8.4-1.3.20, php4.0.6, postgresql-7.1.3 etc.. and it was quite
easy. I did intend to compile MySQL myself, but on their own site, they
recommend using a binary install, and I don't really use MySQL anyway (but
need to support it) so I just used the RPM on the YDL CD. My system
already had OpenSSL 0.9.6a (or whatever ships with YDL 2.0), so, I didn't
compile and install openssl-0.9.6b, but did compile apache against it.
Here are the steps I took:

First, I grabbed the tar balls, and untarred them so that my dir looked
like so:

[root@gdb /root]# ls -l
drwxr-xr-x 8 1134 1134 4096 Aug 21 12:35 apache_1.3.20
drwxr-xr-x 10 root root 4096 Aug 21 12:48 mod_ssl-2.8.4-1.3.20
drwxr-xr-x 20 root root 4096 Aug 21 12:55 openssl-0.9.6b
drwxr-xr-x 13 7801 7801 4096 Aug 21 13:15 php-4.0.6
drwxrwxrwx 7 1005 96 4096 Aug 21 13:44 postgresql-7.1.3

###################
#postgresql install
###################

./configure --with-openssl=/usr/include/openssl/ --enable-odbc --with-perl
make
make install
adduser postgres
cd <place for data directory>
mkdir data
chown postgres:postgres data
su - postgres
/usr/local/pgsql/bin/initdb -D /www/data
/usr/local/pgsql/bin/postmaster -D /www/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test

#########
# then vi /etc/ld.so.conf
# - add line : /usr/local/pgsql/lib
# followd by: ldconfig
#######

###################
#mySQL install (I cheated)
###################

rpm -i /mnt/cdrom/YellowDog/ppc/mysql-3.23.32-1.7a.ppc.rpm
rpm -i /mnt/cdrom/YellowDog/ppc/mysql-server-3.23.32-1.7a.ppc.rpm

####################
# Apache/mod_ssl install
####################

vi apache_1.3.20/src/os/unix/os.h

## change the line that says '#define PLATFORM "Unix"'
## so that it says '#define PLATFORM "YellowDog Linux (PPC)"'
## this is so that my http headers return YDL as the OS
## check http://www.netcraft.com/whats?host=www.mcgill.ca

cd apache_1.3.20
SSL_BASE=../openssl-0.9.6b

./configure \
--enable-shared=ssl \
--enable-module=ssl \
--enable-module=speling \
--enable-shared=max \
--prefix=/usr/local/apache

make
make certificate
make install

cd ../apache_1.3.20/src/modules/standard
/usr/local/apache/bin/apxs -c mod_speling.c
/usr/local/apache/bin/apxs -i -n -a mod_speling.so

###############
#php install
###############

cd php-4.0.6

./configure \
--with-mysql \
--with-apxs=/usr/local/apache/bin/apxs \
--with-pgsql=/usr/local/pgsql/lib/
make
make install

 
## That's it!

Cheers,

Chris

-- 

Christopher Murtagh Webmaster / Sysadmin Web Communications Group McGill University Montreal, Quebec Canada



This archive was generated by hypermail 2a24 : Mon Sep 03 2001 - 14:54:01 MDT