Voting

: six minus two?
(Example: nine)

The Note You're Voting On

geigers at binghamton dot edu
17 years ago
If you have oci8 and are trying to use openldap for ldap you *may* run into a problem. I have an Oracle database that I connect to from apache. Oracle also has ldap libs which were taking precedence over the openldap libs. This would cause a seg fault when calling ldap_connect with a uri style connect string; e.g. ldap_connect("ldaps://myldapserver.host");

After using gdb to debug a core dump and a lot of googling I found that the solution was to add an env-var to apachectl startup.

I am using Apache 2.2.8 with PHP 5.2.5 on RHEL. I added:

LD_PRELOAD=/path/to/libldap.so
export LD_PRELOAD

in /usr/sbin/envvars which is read when apachectl starts. You can read more on this here: http://www.mail-archive.com/[email protected]/msg02201.html

Scott Geiger

<< Back to user notes page

To Top