I've not messed with Slashcode nor built a httpd for it in quite some time, but when I had to play sysadmin I would build it in phases. That way after each phase, I could test the validity of it and if the daemon was OK then continue adding things into it. Here's my notes, you should be able to gleen enough information from it to build successfully I'd think. Good luck. You may even be able to just paste a lot of the below into a term window, that's how we rinsed-and-repeated until we'd get things setup correctly here.

 Shane

##########################
# Build the a simple Apache
##########################

cd /usr/local/src/apache_1.3.41
/usr/local/apache/bin/apachectl stop
./configure --with-layout=Apache
make clean 
make
make install
cp /usr/local/src/test.htm /usr/local/apache/htdocs/test.htm
cp /usr/local/src/test.pl /usr/local/apache/htdocs/test.pl

/usr/local/apache/bin/apachectl configtest
/usr/local/apache/bin/apachectl start

# hit http://test.lottadot.com and you should get the stock test page.
# hit http://test.lottadot.com/test.htm and you should get our test page
# hit http://test.lottadot.com/test.pl and you should get our test script

cd /usr/local/src
mkdir /usr/local/src/apache_1.3.41/src/modules/gzip
cp -fr mod_gzip-1.3.26.1a/* apache_1.3.41/src/modules/gzip
mkdir apache_1.3.41/src/modules/dav
cp -r mod_dav-1.0.3-1.3.6/* apache_1.3.41/src/modules/dav/.
cp mod_relocate-1.0/* apache_1.3.41/src/modules/extra/.

rpm -e mod_ssl mod_ssl-devel

##########################
# Build the OpenSSL library
##########################
/usr/local/apache/bin/apachectl stop
cd /usr/local/src/openssl-0.9.8g
make clean
./config --prefix=/usr/local --openssldir=/usr/local/openssl
make
make test
make install

##########################
# Add /usr/local/ssl/lib to linker path
##########################
# Without this change, libssl.so cannot find its shared library dependencies.
echo /usr/local/openssl/lib >> /etc/ld.so.conf
ldconfig

##########################
# Configure the Apache source tree for mod_dav
##########################
cd /usr/local/src/mod_dav-1.0.3-1.3.6
./configure --with-apache=../apache_1.3.41
make
make install

##########################
# Configure the Apache source tree for mod_ssl (ie patch apache with mod_ssl)
##########################
cd /usr/local/src/mod_ssl-2.8.31-1.3.41
./configure \
--with-apache=../apache_1.3.41 \
--with-ssl=../openssl-0.9.8g 


##########################
# Preconfigure Apache (now with mod_ssl)
##########################
cd /usr/local/src/apache_1.3.41
/usr/local/apache/bin/apachectl stop
USE_APACI=1 SSL_BASE=../openssl-0.9.8g \
./configure \
--with-layout=Apache \
--enable-module=ssl \
--enable-module=rewrite \
--disable-module=src/modules/extra/mod_relocate.c  \
--disable-module=src/modules/gzip/mod_gzip.a  \
--disable-module=src/modules/dav/libdav.a  \
--disable-module=src/modules/php5/libphp5.a \
--enable-module=so  \
--enable-module=alias \
--disable-module=info \
--disable-module=userdir \
--disable-module=status \
--enable-rule=EXPAT
make
make install
/usr/local/apache/bin/httpd -l
/usr/local/apache/bin/apachectl configtest
/usr/local/apache/bin/apachectl start

# hit http://test.lottadot.com/ and you should get the stock test page.

##########################
# Build mod_perl
##########################
cd /usr/local/src/mod_perl-1.30
/usr/local/apache/bin/apachectl stop
perl Makefile.PL USE_APACI=1 EVERYTHING=1 DO_HTTPD=1 \
 PERL_MARK_WHERE=1 \
 APACHE_PREFIX=/usr/local/apache \
 SSL_BASE=../openssl-0.9.8g \
 APACI_ARGS=--enable-module=ssl,--enable-module=rewrite\
--disable-module=src/modules/extra/mod_relocate.c,\
--disable-module=src/modules/gzip/mod_gzip.a,\
--disable-module=src/modules/dav/libdav.a,\
--enable-module=so,\
--enable-module=alias,\
--disable-module=info,\
--disable-module=userdir,\
--disable-module=status,\
--enable-rule=EXPAT
make
make install
/usr/local/apache/bin/httpd -l
/usr/local/apache/bin/apachectl configtest
/usr/local/apache/bin/apachectl start

# hit http://test.lottadot.com/ and you should get the stock test page.

/usr/local/apache/bin/apachectl stop
sleep 10
/usr/local/apache/bin/apachectl startssl

# hit https://test.lottadot.com/ and you should get the stock test page, 
# if you've already done the CERT gen

##########################
# Build the final apache w/ mod_perl and mod_ssl (etc)
##########################
cd /usr/local/src/apache_1.3.41
/usr/local/apache/bin/apachectl stop
USE_APACI=1 SSL_BASE=../openssl-0.9.8g \
./configure \
--with-layout=Apache \
--activate-module=src/modules/perl/libperl.a \
--enable-module=ssl \
--enable-module=rewrite \
--disable-module=src/modules/extra/mod_relocate.c  \
--disable-module=src/modules/gzip/mod_gzip.a  \
--disable-module=src/modules/dav/libdav.a  \
--disable-module=src/modules/php5/libphp5.a \
--enable-module=so  \
--enable-module=alias \
--disable-module=info \
--disable-module=userdir \
--disable-module=status \
--enable-rule=EXPAT
make
make install
/usr/local/apache/bin/httpd -l
/usr/local/apache/bin/apachectl configtest
/usr/local/apache/bin/apachectl start

# hit http://test.lottadot.com/ and you should get the stock test page.

# hit https://test.lottadot.com/ and you should get the stock test page, 
# if you've already done the CERT gen

/usr/local/apache/bin/apachectl stop
sleep 10
/usr/local/apache/bin/apachectl startssl

make certificate 

#1. Country Name             (2 letter code) [XY]:US
#2. State or Province Name   (full name)     [Snake Desert]:OH
#3. Locality Name            (eg, city)      [Snake Town]:Columbus
#4. Organization Name        (eg, company)   [Snake Oil, Ltd]:Lottadot LLC
#5. Organizational Unit Name (eg, section)   [Webserver Team]:IT
#6. Common Name              (eg, FQDN)      [www.snakeoil.dom]:test.lottadot.com
#7. Email Address            (eg, name@FQDN) [www@snakeoil.dom]:webmasterfoo@lottadot.com
#8. Certificate Validity     (days)          [365]:

PEM pass phrase: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
/u
cd /usr/local/src/mod_perl-1.30
perl Makefile.PL APACHE_SRC=../apache_1.3.41/src \
                        DO_HTTPD=1 USE_APACI=1 PERL_MARK_WHERE=1 EVERYTHING=1 \
                        APACHE_PREFIX=/usr/local/apache


/usr/local/apache/bin/httpd -DSSL
$ netscape https://local-host-name/



On Feb 9, 2010, at 3:57 AM, nidujay wrote:

Hi All,

I realise that this is a mod_perl related question, but I didn't get a response in the mod_perl ML, so I thought I'd try my luck here.

I'm trying to build mod_perl along with apache as described here (step 3 gives the build and test instructions).

When I run "make test", quite a few of the test (including the 1st one) failed. So I tried to run just the first test as follows:

# make start_httpd
...
letting apache warm up...\c
done

# cd t
# ./TEST -v modules/actions.t
modules/actions.t .. 
1..1
fetch: `500 unexpected EOF before status line seen
'
not ok 1
Failed 1/1 subtests 
Test Summary Report
-------------------
modules/actions.t (Wstat: 0 Tests: 1 Failed: 1)
  Failed test:  1
Files=1, Tests=1,  0 wallclock secs ( 0.03 usr  0.08 sys +  0.27 cusr  0.11 csys =  0.49 CPU)
Result: FAIL

I can't work out what the problem is. Does anyone have any suggestions?

These are the software versions I'm using.
OpenSuse 11.1
perl: 5.10.0
mod_perl: 1.29
apache: 1.3.34


Thanks,
d