[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Ldap with Php

HELLO !!!! My Php is running......

I'm recompile the php with the option --with-ldap=/usr/local
My libs of ldap is in /usr/local/lib

./configure --with-apxs=/usr/local/apache/bin/apxs --with-ldap=/usr/local/

And now my Php with ldap support is ok.


Mike Denka wrote:

Yep. You're right.  I'm afraid I didn't read the problem description
very carefully.  Sorry to contribute to confusion. Friday afternoon


-----Original Message----- From: owner-openldap-software@OpenLDAP.org [mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of Howard Chu Sent: Friday, March 07, 2003 5:19 PM To: 'Mike Denka'; openldap-software@OpenLDAP.org Subject: RE: Ldap with Php

Apache is clearly finding the libphp4.so module without any problem, so
part of his config is OK as-is. The problem Apache complains about is
the PHP module can't find a library to satisfy its dependency on a
ldap_value_free. This can only be because libldap.so is not installed in
standard location, and/or you haven't run ldconfig with the path where
libldap.so is installed, and you haven't pointed to it with the
LD_LIBRARY_PATH environment variable either.

 -- Howard Chu
 Chief Architect, Symas Corp.       Director, Highland Sun
 http://www.symas.com               http://highlandsun.com/hyc
 Symas: Premier OpenSource Development and Support

-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Mike Denka
Sent: Friday, March 07, 2003 3:56 PM
To: openldap-software@OpenLDAP.org
Subject: RE: Ldap with Php

Typically, apache likes to find its modules in its modules subdirectory. That is where php will put the libphp4.so library by default. If you changed the defaults, you should have put the libphp4.so library in a subdirectory you created under your apache root called libexec. Did you do all that? If not, change the line (line 205) in your apache config file to read:

LoadModule php4_module        modules/libphp4.so

And check to make sure the libphp4.so library is really in the modules


-----Original Message----- From: owner-openldap-software@OpenLDAP.org [mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of Marcone Luis Theisen Sent: Friday, March 07, 2003 2:31 PM To: openldap-software@OpenLDAP.org Subject: Re: Ldap with Php

Ok, I sorry, the directory is /usr/local/include

ls /usr/local/include

I compiled with the options:

./configure --with-ldap --includedir=/usr/local/include
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:
/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 ?



Quanah Gibson-Mount wrote:

--On Friday, March 07, 2003 5:14 PM -0300 Marcone Luis Theisen
<marcone@univates.br> wrote:


when I compiling the php-4.3.2 with ldap support I received the


./configure --with-ldap=/usr/local/include/

checking for LDAP support... yes
configure: error: Cannot find ldap.h


# ls /usr/local/libexec/

Like most sane programs, it is probably looking for ldap.h in

ls /usr/local/include/ldap.h /usr/local/include/ldap.h


Quanah Gibson-Mount
Senior Systems Administrator
ITSS/TSS/Computing Systems
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html