One of our servers (Redhat Linux 6.2) has openssl 0.9.5 in /usr, and is needed for legacy software. I installed openssl 0.9.6 in /usr/local as shared, and linked in ld.so.conf. This allows php to be compiled with openssl, but breaks the legacy software that defaults to the new openssl, which is not good for our case.
Question is, how can we install php (as apache DSO module) with openssl support without linking the new openssl library on the server? If we do it without linking new openssl libraries, when trying to start, we get:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: sk_new_null
configure options:
./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs --with-gd --with-zlib=/usr --with-png-dir=/usr --enable-ftp --with-jpeg-dir=/usr --with-curl=/usr/local --with-openssl=/usr/local
Any help would be greatly appreciated. Thanks.
Rob