compiling apache/mod_ssl/php on rh7.2

compiling apache/mod_ssl/php on rh7.2

Post by Dean Hal » Tue, 06 Nov 2001 06:18:42



I'm trying to compile/install apache with mod_ssl (with mm) and php on
RedHat 7.2, but apache keeps giving a segmentation fault and dumping the
core on startup.

If it makes any difference, I've run the exact same procedures to configure,
compile, and install apache in RedHat 6.2 with the exact same versions of
all apps -- and in 6.2, it all works like a charm.

I've finally got apache to run successfully without installing PHP, but as
soon as I install PHP, I get a segmentation fault again when I run apache.

Here's the relevant data:

apps:
- apache_1.3.22
- openssl-0.9.6b-8 (from RPM since tons of other apps need it)
- mod_ssl-2.8.5-1.3.22
- mm-1.1.3
- php-4.0.6
- mhash-0.8.11 (I won't include details of compiling this.)
- libmcrypt-2.4.17 (or this)
- mysql-3.23.41-1 (from RPM)

(All variables resolve correctly here:)

$ cd mm-1.1.3
$ ./configure --disable-shared
$ make

$ cd ../mod_ssl-2.8.5-1.3.22
$ ./configure \
    --with-apache=../$APACHE \
    --with-ssl \
    --with-mm=../$MM
    --enable-shared=ssl \

$ cd ../apache_1.3.22
$ SSL_BASE=SYSTEM \
EAPI_MM=../$MM \
./configure \
    --enable-module=ssl \
    --enable-shared=ssl \
    --prefix=/usr/local/apache \
    --enable-module=rewrite \
    --enable-shared=rewrite \
    --enable-rule=SHARED_CORE \
    --enable-rule=SHARED_CHAIN \
    --enable-module=so
$ make
$ make certificate TYPE=custom ALGO=rsa
$ # Make my cert & key here.
$ make install

$ cd ../php-4.0.6
$ ./configure \
    --with-config-file-path=/usr/local/apache/conf \
    --with-apxs=/usr/local/apache/bin/apxs \
    --with-pear \
    --with-zlib \
    --with-openssl \
    --with-ldap \
    --with-mhash \
    --with-mcrypt \
    --with-mysql

$ /usr/local/apache/bin/apachectl startssl
/usr/local/apache/bin/apachectl: line 184: 7444 Segmentation fault
    (core dumped) $HTTPD -DSSL
/usr/local/apache/bin/apachectl startssl: httpd could not be started

error_log shows:

[notice] Apache/1.3.22 (Unix) mod_ssl/2.8.5 OpenSSL/0.9.6b configured --
resuming normal operations
[notice] Accept mutex: sysvsem (Default: sysvsem)
[notice] caught SIGTERM, shutting down

Thanks for any help anyone can provide. The mod_ssl and enigma lists haven't
helped yet.

Dean.

 
 
 

1. Apache Segmentation Fault with mod_ssl and php

Running:

Apache/1.3.20 (Unix) AuthMySQL/2.20 PHP/4.0.6 mod_ssl/2.8.4 OpenSSL/0.9.6b

on solaris 7 on an Ultra5

I get the occasional (maybe 1 in 5 attempts?) Segmentation Fault when
accessing the secure site. Checking the web and news archives seems to
through up lots of people with this problem but no clear fix. Some
suggestions that I need to ensure the compile flag -DEAPI is set when
building php (done - no difference) and some suggestions that I need
to use --enable-rule=SSL_SDBM (again, no difference)

I am also getting the occasional Bus error when accessing the secure
site.

Extract from the apache error_log:

[Thu Aug 30 16:35:47 2001] [notice] Apache/1.3.20 (Unix) AuthMySQL/2.20 PHP/4.0.6 mod_ssl/2.8.4 OpenSSL/0.9.6b configured -- resuming normal operations
[Thu Aug 30 16:37:06 2001] [notice] child pid 24877 exit signal Segmentation Fault (11)
[Thu Aug 30 16:37:07 2001] [notice] child pid 24872 exit signal Segmentation Fault (11)
[Thu Aug 30 16:37:11 2001] [notice] child pid 24878 exit signal Segmentation Fault (11)
[Thu Aug 30 16:37:12 2001] [notice] child pid 24879 exit signal Segmentation Fault (11)
[Thu Aug 30 16:37:12 2001] [notice] child pid 24880 exit signal Segmentation Fault (11)
[Thu Aug 30 16:37:13 2001] [notice] child pid 24886 exit signal Segmentation Fault (11)
[Thu Aug 30 16:37:14 2001] [notice] child pid 24888 exit signal Segmentation Fault (11)
[Thu Aug 30 16:37:15 2001] [notice] child pid 24876 exit signal Bus Error (10)
[Thu Aug 30 16:37:16 2001] [notice] child pid 24889 exit signal Segmentation Fault (11)

This was caused by constantly refreshing the page in a browser.

However, I can't replicate this problem using ie6 or netscape 4.7 - it only
appears when I use ie5.5. Seems odd to me (I don't currently have any other
browsers to try it on at the mo).

Any suggestions before I delve deeper into this?

php was built using:

./configure --with-apache=../apache_1.3.20 --enable-track-vars --with-mysql=/usr/local/mysql

and apache configured using:

./configure \
"--with-layout=Apache" \
"--prefix=/www" \
"--add-module=src/modules/extra/mod_auth_samba.c" \
"--activate-module=src/modules/php4/libphp4.a" \
"--enable-module=info" \
"--enable-module=rewrite" \
"--enable-module=speling" \
"--enable-module=ssl" \
"--enable-module=usertrack" \
"--activate-module=src/modules/auth_mysql/libauth_mysql.a" \
"--enable-module=status" \
"--enable-rule=SSL_SDBM" \

other env info that I have added:

CFLAGS="-DEAPI"
LIBS="/lib/security/pam_smb_auth.so -lpam"
SSL_BASE="/usr/local/ssl"

As I say, this seems to work fine for me on using my machine as a client
(internet explorer 6) but a colleague using ie5.5 finds the site
unreliable :-( what the hell is ie5.5 doing that other browsers don't??!!

Ideas? I can't be the only person attempting to run mod_ssl and php on the
same machine!!!

Darren

2. compiling mwm and motif 1.2.2 for linux

3. Solaris 8 Apache + mod_ssl + php

4. drive hosed

5. Apache, mod_ssl, php and mysql on RH6.0

6. install linux from unix

7. Segmentation fault (11) with apache+php+mod_ssl-1.3.12+4.0b3+2.6.0

8. new dictionary program, feedback welcome

9. Latest Apache+mod_ssl+php port?

10. apache/mod_ssl/php says started but is not

11. apache+mod_ssl+php dumps core

12. Apache+mod_ssl+php+mod_perl compilation

13. Apache w/ PHP and SSL: w/ PHP OK - w/out PHP NOK