Can I upgrade the Apache Webserver on the RaQ3?
Posted on: 01/01/2004 07:00 PM

Yes. Do the follow to install Apache 1.3.26 on the Cobalt RaQ3:

Telnet/SSH to your server and type \\"su -\\" to login as root. Then run the follow commands:
cd /usr/local
wget http://httpd.apache.org/dist/apache_1.3.26.tar.gz
tar xzvf apache_1.3.26.tar.gz
wget http://www.openssl.org/source/openssl-0.9.6g.tar.gz
tar xzvf openssl-0.9.6g.tar.gz
wget http://www.modssl.org/source/mod_ssl-2.8.10-1.3.26.tar.gz
tar xzvf mod_ssl-2.8.10-1.3.26.tar.gz
wget http://perl.apache.org/dist/mod_perl-1.27.tar.gz
tar xzvf mod_perl-1.27.tar.gz
wget http://pam.sourceforge.net/mod_auth_pam/dist/mod_auth_pam.tar.gz
tar xzvf mod_auth_pam.tar.gz
ln -s /usr/local/apache_1.3.26 /usr/local/apache
cd apache
./configure --prefix=/etc/httpd
cd ../openssl-0.9.6e
./config
make
make install
cd ../mod_ssl_2.8.10-1.3.26
./configure --with-apache=/usr/local/apache
cp /usr/local/mod_auth_pam-1.0a/mod_auth_pam.c /usr/local/apache/src/modules/extra/
cd ../usr/local/mod_perl-1.27
perl Makefile.PL APACHE_SRC=../apache/src DO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
make
make install
cd ../usr/local/apache
pico config.status

Cut&paste the follow into the config.status file:
#!/bin/sh
##
## config.status -- APACI auto-generated configuration restore script
##
## Use this shell script to re-run the APACI configure script for
## restoring your configuration. Additional parameters can be supplied.
##

CFLAGS=\\"-DBIG_SECURITY_HOLE\\" \\\\
LIBS=\\"-lpam -ldl\\" \\\\
SSL_BASE=\\"/usr/local/ssl\\" \\\\
./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=example\\" \\\\
\\"--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=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\\" \\\\
\\"$@\\"

Run this script with: ./config.status (return)

Then do the follow:
cd src
pico apaci

Cut&paste the follow into the apaci file:
#!/bin/sh
## USED AS A COMMAND LINE EXPANDER TO OVERRIDE PATHS
## WITHOUT DISTURBING THE KNOWN MAKE BUILD PROCESS DISPLAY
echo \\\'-DHTTPD_ROOT=\\"/etc/httpd\\"\\\'
echo \\\'-DSUEXEC_BIN=\\"/usr/bin/suexec\\"\\\'
echo \\\'-DSHARED_CORE_DIR=\\"/usr/lib/apache\\"\\\'
echo \\\'-DDEFAULT_PIDLOG=\\"/var/run/httpd.pid\\"\\\'
echo \\\'-DDEFAULT_SCOREBOARD=\\"/var/run/httpd.scoreboard\\"\\\'
echo \\\'-DDEFAULT_LOCKFILE=\\"/var/run/httpd.lock\\"\\\'
echo \\\'-DDEFAULT_XFERLOG=\\"/var/log/httpd/access_log\\"\\\'
echo \\\'-DDEFAULT_ERRORLOG=\\"/var/log/httpd/error_log\\"\\\'
echo \\\'-DTYPES_CONFIG_FILE=\\"conf/mime.types\\"\\\'
echo \\\'-DSERVER_CONFIG_FILE=\\"conf/httpd.conf\\"\\\'
echo \\\'-DACCESS_CONFIG_FILE=\\"conf/access.conf\\"\\\'
echo \\\'-DRESOURCE_CONFIG_FILE=\\"conf/srm.conf\\"\\\'
echo \\\'-DSSL_CERTIFICATE_FILE=\\"conf/ssl.crt/server.crt\\"\\\'
echo \\\'-DEAPI_MM_CORE_PATH=\\"/var/run/httpd.mm\\"\\\'

Then do the follow:
cd ..
make
/etc/rc.d/init.d/admserv stop
/etc/rc.d/init.d/httpd stop
mv /usr/sbin/httpd /usr/sbin/httpd.old
cd src
cp httpd /usr/sbin
/etc/rc.d/init.d/admserv start
/etc/rc.d/init.d/httpd start

Done! You are now running Apache/1.3.26 (Unix) mod_perl/1.27 mod_auth_pam/1.0a mod_ssl/2.8.10 OpenSSL/0.9.6g on your RaQ3


Printed from Linux Compatible (http://www.linuxcompatible.org/knowledgebase/entry/can_i_upgrade_the_apache_webserver_on_the_raq3.html)