Subject: Apache, OpenSSL, MySQL, PostgreSQL, PHP compile instructions
From: Christopher Murtagh (christopher.murtagh@mcgill.ca)
Date: Mon Sep 10 2001 - 13:22:30 MDT
Hi gang,
I just noticed that in a previous email I sent to this list, I had missed
out some lines in my instructions on how to compile the most recent
versions of Apache, PHP, OpenSSL etc..
So here is a revised and complete version:
Grab and untar the tarballs for the following software:
openssl-0.9.6b
postgresql-7.1.3
mysql 3.23
mod_ssl-2.8.4-1.3.20
apache_1.3.20
php-4.0.6
and put them in a directory so that your directory listing would look
something like:
[root@kali server_software]# ls -l
total 24
drwxr-xr-x 8 1134 1134 4096 Sep 10 13:19 apache_1.3.20
drwxr-xr-x 10 root root 4096 Sep 10 13:17 mod_ssl-2.8.4-1.3.20
drwxr-xr-x 20 root root 4096 Sep 10 13:01 openssl-0.9.6b
drwxr-xr-x 16 7801 7801 4096 Sep 10 13:35 php-4.0.6
drwxrwxrwx 7 1005 96 4096 Sep 10 12:23 postgresql-7.1.3
[root@kali server_software]#
NOTE: throughout these instructions, I have cd commands to the above
directories that are like 'cd openssl-0.9.6b/' which will probably need to
be changed to 'cd /some/path/openssl-0.9.6b/' or 'cd ../openssl-0.9.6b'.
It should be obvious where.
#####################################
openssl-0.9.6b
#####################################
cd openssl-0.9.6b/
./config
make
make test
make install #(optional if it is alread installed as an RPM)
#####################################
postgresql-7.1.3
#####################################
./configure --with-openssl=/usr/include/openssl/ --enable-odbc --with-perl
make
make install
adduser postgres
mkdir <data directory>
chown postgres:postgres <data directory>
su - postgres
/usr/local/pgsql/bin/initdb -D <data directory>
/usr/local/pgsql/bin/postmaster -D <data directory> >logefile 2>&1 &
## create test database and test Postgres interface (optional)
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test
vi /etc/ld.so.conf # add line '/usr/local/pgsql/lib' to this file
#if you don't PHP won't be able to install Postgres support
ldconfig
#####################################
MySQL 3.23
#####################################
# For this software, I cheated and used an RPM. This
# was because I couldn't find any reasonable instructions
# from the MySQL site. They simply stated that binary
# format was the best way to get it. Since I don't have
# to use MySQL (but have to support it in PHP), I went the
# easy way and used the RPM.
# mount YDL2.0 CD to /mnt/cdrom and then do the following:
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
#####################################
mod_ssl-2.8.4-1.3.20 and apache_1.3.20
#####################################
cd mod_ssl-2.8.4-1.3.20/
./configure --with-apache=../apache_1.3.20/
cd ../apache_1.3.20/
vi ./src/os/unix/os.h #Change '#define PLATFORM "Unix"'
#to '#define PLATFORM "YellowDog Linux (PPC)'
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 # You might need options here, depending on if you
# alread have a certificate or not. See the output
# from the above step for more instructions
make install
# if you want to use /etc/rc.d/init/apache to start/restart
# apache, you'll need a script. Email me for one, otherwise
# use /usr/local/apache/bin/apachectl [start/startssl/stop/graceful]
# NOTE: apache won't start up by default without the /etc/rc.d.. script
#####################################
php-4.0.6
#####################################
cd php-4.0.6/
./configure \
--with-mysql \
--with-apxs=/usr/local/apache/bin/apxs \
--with-pgsql=/usr/local/pgsql/lib
make
make install
#/usr/local/apache/bin/apachectl startssl should
# now start apache (you might be prompted for a password
# that you used in the make certificate step above
Cheers,
Chris
--Christopher Murtagh Webmaster / Sysadmin Web Communications Group McGill University Montreal, Quebec Canada
This archive was generated by hypermail 2a24 : Mon Sep 10 2001 - 12:32:30 MDT