Re: Installation Woes

2003-03-18 Thread Stuart Cook
Hi,

I have attached a build script I use to make Apache 1.3.27 with SSL. 
Maybe this will be useful.

Regards,

Stuart

---

[EMAIL PROTECTED] wrote:
Rick,

been fighting with it myself today, I'm using Solaris but if you run httpd
-l it will tell you what modules were compiled into your build, if mod_ssl
isn't there you'll either have to rebuild with mod_ssl or load the module
dynamically. 

-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 3:46 PM
To: [EMAIL PROTECTED]
Subject: Installation Woes
Hi folks.. I'm a newbie here, installing Apache and OpenSSL and mod_ssl 
from source on my RedHat 7.3 (I uninstalled the RPMS)

Call me stupid, but I must be missing something...

The installation instructions are pretty straightforward but I have one 
major problem - the httpd.conf doesn't include ANY ssl configuration 
options after it's installed.

So of course, SSL doesn't work.

The instructions seem to assume that the SSL configuration options will 
be there.  This left me really confused.

I ripped out some code from another httpd.conf but now I've got it 
responding to SSL on port 80 as well as 443.

What I'm looking for is BASIC instructions on how to configure apache to 
use SSL (and maybe someone can tell me why it's not IN the instructions 
in the first place).  I've looked in the FAQ and the reference guide but 
I haven't had any luck yet.

Downloaded everything today - apache 1.3.27, open_ssl 0.9.7a, and 
mod_ssl 2.8.12

__
Apache Interface to OpenSSL (mod_ssl)   www.modssl.org
User Support Mailing List  [EMAIL PROTECTED]
Automated List Manager[EMAIL PROTECTED]
--
The information in this Internet email is confidential and may be legally privileged. 
It is intended solely for the addressee. Access to this Internet email by anyone else 
is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or any 
action taken or omitted to be taken in reliance on it, is prohibited and may be 
unlawful. When addressed to our clients any opinions or advice contained in this 
Internet email are subject to the terms and conditions expressed in any applicable 
governing ING terms of business or client engagement letter.
Visit us at www.ing.com
--
01
__
Apache Interface to OpenSSL (mod_ssl)   www.modssl.org
User Support Mailing List  [EMAIL PROTECTED]
Automated List Manager[EMAIL PROTECTED]



--

 Stuart V Cook BSc. (Hons)
 Senior Software Consultant - Micromuse Ltd.
 90 Putney Bridge Rd, London. SW18 1DA. UK
 Office: +44-(0)20-8875 9500 x734
 Mobile: +44-(0)7771 816 472

#!/bin/sh

if [ $# -lt 1 ]; then
echo Usage:
echo \t$0 arch
exit 1
fi

if [ -n $2 ]; then
ROOTPATH=$2
fi

if [ -n $ROOTPATH} ]; then
MASTER_PATH=${ROOTPATH}/master/apache_1.3.27
BUILD_PATH=${ROOTPATH}/${1}/apache
OPENSSL_PATH=${ROOTPATH}/openssl-engine-0.9.6g
# MM_PATH=${ROOTPATH}/mm-1.2.1
MOD_SSL_PATH=${ROOTPATH}/mod_ssl-2.8.12-1.3.27
else
echo ERROR: Please specify root path to files.
exit 1
fi



# Build Open Secure Socket Layer

cd $OPENSSL_PATH
echo Changed to directory `pwd`
echo Configuring OpenSSL...

echo Executing \sh config no-idea no-threads\

RES=`sh config no-idea no-threads 21`
if [ $? -gt 0 ]; then
echo Failed to configure OpenSSL becauase:\n$RES | more
exit 1
fi

echo Cleaning up any previous builds...
echo Executing \make clean\

RES=`make clean 21`

echo Making OpenSSL...
echo Executing \make\

RES=`make 21`
if [ $? -gt 0 ]; then
echo Failed to make OpenSSL because:\n$RES | more
exit 3
fi


#
# Build Shared Memory Library
#
# cd $MM_PATH
# echo Changed to directory `pwd`
# echo Configuring Shared Memory Library...

# echo Executing \./configure --disable-shared\

# RES=`./configure --disable-shared 21`
# if [ $? -gt 0 ]; then
# echo Failed to configure Shared Memory Library becauase:\n$RES | more
# exit 1
# fi

# echo Cleaning up any previous builds...
# echo Executing \make clean\

# RES=`make clean 21`

# echo Making Shared Memory Library...
# echo Executing \make\

# RES=`make 21`
# if [ $? -gt 0 ]; then
# echo Failed to make Shared Memory Library because:\n$RES | more
# exit 3
# fi



# Configure Secure Socket Library Module

Preprocessor bug in ssl_exp_scan.l when building with native compileron HP-UX 11

2003-02-19 Thread Stuart Cook
I have been building Apache 1.3.27 on HP-UX 11 via the native compiler 
with Mod SSL 2.8.12-1.3.27 and have come across and resolved a build bug 
during the Apache compilation process.

In the Mod SSL file .../pkg.sslmod/ssl_expr_scan.l from line 91 onwards 
there is a state variable 'str'.  The native C pre-processor converts 
this to 1 and errors with:

/opt/ansic/bin/cc -c  -I../../os/unix -I../../include   -DHPUX11 -Aa -Ae 
-D_HPUX_SOURCE -DMOD_SSL=208112 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT 
-I../../lib/expat-lite `../../apaci` -DSSL_COMPAT -DSSL_ENGINE 
-I/build/reporter/apache/openssl-engine-0.9.6g/include 
-DMOD_SSL_VERSION=\2.8.12\ ssl_expr_scan.c
cc: lex.ssl_expr_yy.c, line 1753: error 1000: Unexpected symbol: 1.
cc: lex.ssl_expr_yy.c, line 1760: error 1720: Subscript expression 
must combine object pointer and integer.
cc: lex.ssl_expr_yy.c, line 1760: error 1566: Test expression in for 
must be scalar.
cc: lex.ssl_expr_yy.c, line 1763: warning 527: Integral value 
implicitly converted to pointer in assignment.
cc: lex.ssl_expr_yy.c, line 1763: warning 563: Argument #1 is not the 
correct type.
*** Error exit code 1

This can be resolved by changing .../pkg.sslmod/ssl_expr_scan.l state 
variable to 'str_state' or some other value than 'str'.

Once this change is made, the apache web server correctly and 
successfully compiles.

Stuart

--

 Stuart V Cook BSc. (Hons)
 Senior Software Consultant - Micromuse Ltd.
 90 Putney Bridge Rd, London. SW18 1DA. UK
 Office: +44-(0)20-8875 9500 x734
 Mobile: +44-(0)7771 816 472

__
Apache Interface to OpenSSL (mod_ssl)   www.modssl.org
User Support Mailing List  [EMAIL PROTECTED]
Automated List Manager[EMAIL PROTECTED]