PHP 4.7 --with-ssl causing apache core dumps

Don O'Neil

Verified User
Joined
Nov 5, 2006
Messages
10
Hi all... I'm having a problem with my setup... John at tech support helped me at least get the system debugged and back online and locate the problem, alot of thanks to him...

I have a FreeBSD 6.1 systm, apache 1.39, PHP 4.7, Latest Curl, 8d OpenSSL (8e won't create the shared libraries), so all the latest stuff.

When I build PHP with --with-ssl it causes apache to core dump when it loads. I had a similar problem with Curl, which turned out to be an issue with Curl not finding the SSL libs, but the same thing doesn't seem to be happening with PHP.

Does anyone have any ideas where to look or what to do to fix this? i need to get the SSL working for my WhoisCart setup, which uses it to interface with the DA API.

Thanks!
 
I think it's PHP 4.4.7, isn't it? :) You can try to reinstall openssl libraries (from yum repositories). Then rebuild apache and PHP.
 
You dont need --with-ssl to build apache. Just build apache as normal. Never had to do this.
 
I think he is talking about --with-openssl flag in PHP configuration file (/usr/local/directadmin/customapache/configure.php).
 
Does anyone have a solution for this yet? I'm still unable to get it to work. Any suggestions on where to look would be appreciated.

Because I'm not able to get this to work my Installatron installation is basically DOA.

I've tried clean builds, rolling back PHP versions, rolling back OpenSSL versions, eliminating curl, etc... but it all just points to the --with-ssl in php causing the core dump.

Anyone out there running FreeBSD 6.1 with ssl and the latest versions of php 4 / apache 1x sucessfully? If so, what versions of everything are you running so I can install all those and try re-building with those.
 
try to remove some lines

Hi , I Have like this problem before with GD, I think you will try rebuild PHP with
less libraries , you must remove some lines from configure.php and rebuild , until you get any library exactly cause this and change its version and rebuild it
 
What does your configure.php file look like? I've been trying to remove libraries one by one but so far no luck.
 
I even tried with NOTHING in the configure.php file:

!/bin/sh
./configure

and it still won't start...

I'm getting the error:
(httpd), uid 0: exited on signal 6 (core dumped)
 
configure.php

Hi
try it with this lines only
#!/bin/sh
./configure \
--with-apxs \
--with-mysql=/usr \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars
 
Nope... doesn't work for me with that, or with less. I was trying to see if I could get apache to start at all without php, but there are too many hooks in the config files.

gdb of the core dump points to libcrypto.so.5, but I can't seem to figure out where or why it's happening. OpenSSL works fine from the command line.
 
Back
Top