Well, I'm export the /usr/local/lib
echo $LD_LIBRARY_PATH /usr/local/lib:/lib:/usr/lib
Removed the libphp4 rm /usr/local/apache/libexec/libphp4.so
In the file config.log of Php:
My ldd of libphp4.so:
ldd /usr/local/apache/libexec/libphp4.so libdl.so.2 => /lib/libdl.so.2 (0x40131000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40134000) libresolv.so.2 => /lib/libresolv.so.2 (0x40161000) libm.so.6 => /lib/libm.so.6 (0x40171000) libnsl.so.1 => /lib/libnsl.so.1 (0x40192000) libc.so.6 => /lib/libc.so.6 (0x401a7000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
The libldap not found.
Any ideas ?
Thank's.
Quanah Gibson-Mount wrote:
--On Friday, March 07, 2003 7:31 PM -0300 Marcone Luis Theisen <marcone@univates.br> wrote:
Ok, I sorry, the directory is /usr/local/include
ls /usr/local/include ldap.h
I compiled with the options:
./configure --with-ldap --includedir=/usr/local/include --with-apxs=/usr/local/apache/bin/apxs make make install cp php.ini-dist /usr/local/lib/php.ini
Php is ok. But when I restart apache...
/usr/local/apache/bin/apachectl start Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: ldap_value_free /usr/local/apache/bin/apachectl start: httpd could not be started
The line 205 of httpd.conf is: LoadModule php4_module libexec/libphp4.so
Any ideas ?
What is the output from ldd libphp4.so?
It may be linked against a library it can't find by default. Not sure how you set the library path for Apache, although if you are starting it with a shell script, you could put
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH
to make sure it looks in /usr/local/lib for the ldap libraries.
--Quanah
-- Quanah Gibson-Mount Senior Systems Administrator ITSS/TSS/Computing Systems Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html