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.