[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Script to upgrade RAQ3 to apache 1.2.23
- Subject: [cobalt-users] Script to upgrade RAQ3 to apache 1.2.23
- From: "Steve Bassi" <steve@xxxxxxxxx>
- Date: Sun Feb 24 16:06:47 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
I have placed a script to upgrade apache which can be downloaded Free at
http://www.firstwebspace.com/raq
This is for RAQ3 ONLY!!
The script is for a standard RAQ3 that has not been modified and has worked
successfully on many RAQs.
Before you use the script read it carefully to make sure it will work on
your system.
Thanks to Chris Burton at max-hosting.net for his invaluable contribution.
The notes for the upgrade are shown below.
If you use php, you also need to amend the apxs file in order to compile PHP
with apxs.
The original RAQ3 apxs has these 2 lines (line80 and 202 I think)
my $CFG_SBINDIR = '/usr/bin'; # substituted via APACI install
($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+W+iaA", @ARGV);
which should be
my $CFG_SBINDIR = '/usr/sbin'; # substituted via APACI install
($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+S+W+iaA", @ARGV);
Finally, use it at your own risk. I am not responsible and it may invalidate
your cobalt guarantee if you still have one. AND if anyone would like to
make the script better please feel free - I am a newbie to making scripts
and there must be a better way.
Rgds
Steve Bassi - London
The Notes
=======
cd /usr/local
MYSQLP="--with-mysql=/usr/local/mysql/"
wget http://www.apache.org/dist/httpd/apache_1.3.23.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.26.tar.gz
wget http://www.modssl.org/source/mod_ssl-2.8.6-1.3.23.tar.gz
wget http://www.openssl.org/source/openssl-0.9.6c.tar.gz
tar zxf apache_1.3.23.tar.gz
tar zxf mod_auth_pam.tar.gz
tar zxf mod_perl-1.26.tar.gz
tar zxf mod_ssl-2.8.6-1.3.23.tar.gz
tar zxf openssl-0.9.6c.tar.gz
cd apache*
mkdir ../apache
mv * ../apache
cd ..
rmdir apache_1.3.23
cd apache
./configure --prefix=/etc/httpd
cd openssl*
mkdir ../openssl
mv * ../openssl
cd ..
rmdir openssl-0.9.6c
cd openssl
./config
echo "Make OpenSSL"
make
cd ..
cd mod_ssl*
mkdir ../mod_ssl
mv * ../mod_ssl
cd ..
rmdir mod_ssl-2.8.6-1.3.23
cd mod_ssl
./configure --with-apache=../apache
cd ..
cd mod_per*
mkdir ../mod_perl
mv * ../mod_perl
mv .gdbinit ../mod_perl
cd ..
rmdir mod_perl-1.26
echo "Configure mod_perl"
cd mod_perl
(perl ./Makefile.PL APACHE_SRC=../apache/src/ DO_HTTPD=1 USE_APACI=1
PREP_HTTPD=1 EVERYTHING=1;make;make install)
cd ..
echo "Configure mod_auth_pam"
cp mod_auth_pam-1.0a/mod_auth_pam.c apache/src/modules/extra/
cd openssl
make install
cd ..
echo "Configure Apache"
export CFLAGS="-DBIG_SECURITY_HOLE"
export LIBS="-lpam -ldl"
export SSL_BASE="/usr/local/ssl"
cd apache
./configure --prefix=/etc/httpd --runtimedir=/var/run --logfiledir=/var/log/
httpd \
--enable-module=ssl --enable-module=setenvif --enable-module=so \
--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 --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
cd ..
mkdir pre-1.3.23-backup
cd pre-1.3.23-backup
mv /etc/httpd/conf/httpd.conf .
cat httpd.conf |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
echo "Saving old httpd"
cp /usr/sbin/httpd .
cd ../apache
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/admserv stop
mv /usr/sbin/httpd /usr/sbin/httpd.orig
cp src/httpd /usr/sbin
echo "Starting servers"
/etc/rc.d/init.d/admserv start
/etc/rc.d/init.d/httpd start
cd /usr/local
mv *.tar.gz upgradeapache