Apache v1.3.26 for the RaQ-3.
by: Bassi
This was originally written by: Bassi & Chris Burton.
It has since been transformed by NuOnce Networks into something a little easier
to read!
Download the appropriate files needed to do this install!
wget http://www.apache.org/dist/httpd/apache_1.3.26.tar.gz
wget http://pam.sourceforge.net/mod_auth_pam/dist/mod_auth_pam.tar.gz
wget http://perl.apache.org/dist/mod_perl-1.27.tar.gz
wget http://www.modssl.org/source/mod_ssl-2.8.10-1.3.26.tar.gz
wget http://www.openssl.org/source/openssl-0.9.6g.tar.gz |
Now you will need to extract them into a temporary directory
tar -xzvf apache_1.3.26.tar.gz -C /tmp/bassiupgrade
tar -xzvf mod_auth_pam.tar.gz -C /tmp/bassiupgrade
tar -xzvf mod_perl-1.27.tar.gz -C /tmp/bassiupgrade
tar -xzvf mod_ssl-2.8.10-1.3.26.tar.gz -C /tmp/bassiupgrade
tar -xzvf openssl-0.9.6g.tar.gz -C /tmp/bassiupgrade |
For install purposes, we will need to change the owner and group of all the
files to root.
Just incase they were packaged poorly
cd /tmp/bassiupgrade
chown -R 0.0 * |
To make typing easier, change the name of all the directories!
mv apache_1.3.26 apache
mv mod_auth_pam-1.1.1 mod_auth_pam
mv mod_perl-1.27 mod_perl
mv mod_ssl-2.8.10-1.3.26 mod_ssl
mv openssl-0.9.6g openssl |
Now will we go into each directory, and compile the software
cd /tmp/bassiupgrade/apache
./configure --prefix=/etc/httpd
cd /tmp/bassiupgrade/openssl
./config --prefix=/usr --openssldir=/usr/local/ssl
make
cd /tmp/bassiupgrade/mod_ssl
./configure --with-apache=../apache
cd /tmp/bassiupgrade/mod_perl
perl ./Makefile.PL APACHE_SRC=../apache/src/ DO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1;make;make install |
mv apache_1.3.26 apache
mv mod_auth_pam-1.1.1 mod_auth_pam
mv mod_perl-1.27 mod_perl
mv mod_ssl-2.8.10-1.3.26 mod_ssl
mv openssl-0.9.6g openssl |
mv apache_1.3.26 apache
mv mod_auth_pam-1.1.1 mod_auth_pam
mv mod_perl-1.27 mod_perl
mv mod_ssl-2.8.10-1.3.26 mod_ssl
mv openssl-0.9.6g openssl |
cp /tmp/bassiupgrade/mod_auth_pam/mod_auth_pam.c /tmp/bassiupgrade/apache/src/modules/extra/
cd /tmp/bassiupgrade/openssl
make install
cd /tmp/bassiupgrade/apache
export CFLAGS="-DBIG_SECURITY_HOLE"
export LIBS="-lpam -ldl"
export SSL_BASE="/tmp/bassiupgrade/openssl"
./configure --prefix=/etc/httpd --runtimedir=/var/run --logfiledir=/var/log/httpd \
--enable-module=ssl --enable-module=setenvif --enable-module=so --enable-module=example \
--enable-module=unique_id --enable-module=usertrack --enable-module=expires \
--enable-module=cern_meta --enable-module=digest --enable-module=auth_db \
--enable-module=auth_anon --enable-module=auth --enable-module=access \
--enable-module=rewrite --enable-module=alias --enable-module=proxy \
--enable-module=userdir --enable-module=speling --enable-module=actions \
--enable-module=imap --enable-module=asis --enable-module=cgi \
--enable-module=dir --enable-module=autoindex --enable-module=include \
--enable-module=auth_dbm \
--enable-module=info --enable-module=status --enable-module=negotiation \
--enable-module=mime --enable-module=mime_magic --enable-module=log_referer \
--enable-module=log_agent --enable-module=log_config --enable-module=env \
--enable-module=mmap_static --enable-module=define \
--enable-module=headers --enable-module=vhost_alias \
--activate-module=src/modules/extra/mod_auth_pam.o \
--activate-module=src/modules/extra/mod_define.o \
--activate-module=src/modules/perl/libperl.a
mv -f src/apaci tmp
cat tmp | sed "s/\/etc\/httpd\/bin/\/usr\/bin/" | sed "s/\/etc\/httpd\/libexec/\/usr\/lib\/apache/" > src/apaci
rm -f tmp
chmod a+x src/apaci
make
mv -f /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bassi.orig
cat /etc/httpd/conf/httpd.conf.bassi.orig | sed s/ssl_scache-80/ssl_scache/ \
| sed s/ssl_mutex-80/ssl_mutex/ |sed s/ssl_scache/ssl_scache-80/ \
| sed s/ssl_mutex/ssl_mutex-80/ > /etc/httpd/conf/httpd.conf
if [ -f /usr/sbin/httpd.bassi.orig ]
then
echo Reinstall of Bassi/ChrisB Apache making dated backup
mv /usr/sbin/httpd /usr/sbin/httpd.bassi.orig.`date +%s`
else
echo First install of Bassi/ChrisB Apache backing up original apache
mv /usr/sbin/httpd /usr/sbin/httpd.bassi.orig
fi
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/admserv stop
cp src/httpd /usr/sbin
/etc/rc.d/init.d/admserv start
/etc/rc.d/init.d/httpd start
# You can remove the /tmp/bassiupgrade directory once you are happy with the install
|