Re: PHP5 and ldap
and now it working... tls_ssf=256 ssf=256 great thanks for php.ini trick! @+ -- View this message in context: http://www.nabble.com/PHP5-and-ldap-tp22183625p25511620.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
SOLVED! i had an incorrect php.ini in front of my apache installation. You put me on the right tracks! problem solved. no I have a TLS negociation error, but this is another part. Cheers -- View this message in context: http://www.nabble.com/PHP5-and-ldap-tp22183625p25511444.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
In response to FreeBSD admin : > > Hi folks, I don't know how to enable ldap for php5 on my Freebsd 7.2 system > > this is a client only ldap system. > ldapsearch works well with tls on it. > but I try to enable roundcube ldap, and roundcube says: > > LDAP Error: No ldap support in this installation of PHP (GET > /?_task=addressbook&_action=list&_source=ldap&_page=1&_remote=1) > > here is the output of pkg_info: > pkg_info | grep ldap > openldap-client-2.4.16 Open source LDAP client implementation > php5-ldap-5.2.9 The ldap shared extension for php > > find / -name ldap.so > /usr/local/lib/php/20060613/ldap.so > > any idea? I have a couple of guesses. 1) If you installed php5-ldap from ports, you generally have to restart Apache for the running PHP to recognize that it's there. 2) Check /usr/local/etc/php/extensions.ini to ensure the .so was properly listed. I've seen cases where it's not listed correctly. You can check the output of php_info() to make sure PHP thinks it's there. Hope this helps. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
Hi folks, I don't know how to enable ldap for php5 on my Freebsd 7.2 system this is a client only ldap system. ldapsearch works well with tls on it. but I try to enable roundcube ldap, and roundcube says: LDAP Error: No ldap support in this installation of PHP (GET /?_task=addressbook&_action=list&_source=ldap&_page=1&_remote=1) here is the output of pkg_info: pkg_info | grep ldap openldap-client-2.4.16 Open source LDAP client implementation php5-ldap-5.2.9 The ldap shared extension for php find / -name ldap.so /usr/local/lib/php/20060613/ldap.so any idea? -- View this message in context: http://www.nabble.com/PHP5-and-ldap-tp22183625p25510735.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
On Thu, 26 Feb 2009, Matthias Fechner wrote: Hi Pieter, Pieter Donche wrote: ---> Skipping 'x11/kde3' (kde-3.5.10_1) because a requisite package 'kdegraphi cs-3.5.10' (graphics/kdegraphics3) failed (specify -k to force) ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! graphics/kdegraphics3 (kdegraphics-3.5.10)(configure error) * x11/kde3 (kde-3.5.10_1) it seems that only this two packages failed to build. So a portupgrade -f kdegraphics3 kde3 should be enough. # cd /usr/ports # portupgrade -f kdegraphics3 kde3 [Updating the pkgdb in /var/db/pkg ... - 489 packages found (-1 +4) (...) done] # this is all the output is this normal? seems very little ... Bye, Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
Hi Pieter, Pieter Donche wrote: ---> Skipping 'x11/kde3' (kde-3.5.10_1) because a requisite package 'kdegraphi cs-3.5.10' (graphics/kdegraphics3) failed (specify -k to force) ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! graphics/kdegraphics3 (kdegraphics-3.5.10)(configure error) * x11/kde3 (kde-3.5.10_1) it seems that only this two packages failed to build. So a portupgrade -f kdegraphics3 kde3 should be enough. Bye, Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
I started, as suggested # cd /usr/ports # portupgrade -fr net/openldap24-client yesterdat at 10:00 it continued all day and somewhere during the night ended with: ... ===> Registering installation for koffice-1.6.3_7,2 ===> Cleaning for koffice-1.6.3_7,2 ---> Cleaning out obsolete shared libraries [Updating the pkgdb in /var/db/pkg ... - 486 packages found (-0 +1) . done] ---> Skipping 'x11/kde3' (kde-3.5.10_1) because a requisite package 'kdegraphi cs-3.5.10' (graphics/kdegraphics3) failed (specify -k to force) ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! graphics/kdegraphics3 (kdegraphics-3.5.10)(configure error) * x11/kde3 (kde-3.5.10_1) How does one go from here ? I checked: # cd /usr/ports/graphics/kdegraphics3 # make ... checking for posix_memalign... yes checking pkg-config files for X11 are available... yes checking for LIBDRM... configure: error: Package requirements (libdrm >= 2.4.3) were not met: Requested 'libdrm >= 2.4.3' but version of libdrm is 2.3.1 OK, I did: # cd /usr/ports/graphics/libdrm # portsnap fetch # portsnap update # portupgrade -R libdrm this did: Upgrading 'libdrm-2.3.1' to 'libdrm-2.4.5' (graphics/libdrm) How do I continue now with the master rebuild which was aborted this night? Is it OK to just doing the same thing as yesterday: # cd /usr/ports # portupgrade -fr net/openldap24-client Or what else? On Tue, 24 Feb 2009, Mikhail Goriachev wrote: Pieter Donche wrote: On Tue, 24 Feb 2009, Vasadi I. Claudiu Florin wrote: what does php --versionsay now? the same as before : PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ldap.so' - Shared object "libldap-2.4.so.5" not found, required by "ldap.so" in Unknown on line 0 PHP 5.2.8 with Suhosin-Patch 0.9.6.3 (cli) (built: Jan 19 2009 08:43:08) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies I had a similar problem. You not gonna love it, but according to /usr/ports/UPDATING: 20090216: AFFECTS: users of net/openldap24-{client,server} AUTHOR: delp...@freebsd.org OpenLDAP has been upgraded to 2.4.14, which requires a shared library version bump. Therefore, you need to reinstall all ports depending on it. Run something like: # portupgrade -fr net/openldap24-client ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
On Tue, Feb 24, 2009 at 07:38:05PM +0100, Pieter Donche wrote: > what the hell is a library 'bump' ?? A library bump occurs when the interface to the shared library has changed. This requires a rebuild of dependant applications as the method invocations or the structures used in method invocations to the library have changed. Failure to rebuild may result in sporadic crashes, data corruption and General Bad Things (tm). -- Jonathan Chen -- "With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead." -- RFC 1925 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
what the hell is a library 'bump' ?? On Tue, 24 Feb 2009, Mel wrote: On Tuesday 24 February 2009 06:36:00 Paul Schmehl wrote: I see that my /usr/local/lib/ now contains lrwxr-xr-x 1 root wheel 16 Feb 23 14:09 libldap-2.4.so -> libldap-2.4.so.6 -rw-r--r-- 1 root wheel 307762 Feb 23 14:09 libldap-2.4.so.6 etc.. so, only references to libldap-2.4.so.6, but no more libldap-2.4.so.5 [snipped] So php5-ldap was already the last version... What's going wrong and how to solve all that ? % ln -s /usr/local/lib/libldap-2.4.so /usr/local/lib/libldap-2.4.so.5 Bad bad. Generally, programmers don't bump library versions, breaking backwards compatibility, for fun. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
On Tuesday 24 February 2009 06:36:00 Paul Schmehl wrote: > I see that my /usr/local/lib/ now contains lrwxr-xr-x 1 root wheel 16 Feb > 23 > 14:09 libldap-2.4.so -> libldap-2.4.so.6 > -rw-r--r-- 1 root wheel 307762 Feb 23 14:09 libldap-2.4.so.6 > etc.. so, only references to libldap-2.4.so.6, but no more > libldap-2.4.so.5 > > [snipped] > > So php5-ldap was already the last version... > > What's going wrong and how to solve all that ? > > % ln -s /usr/local/lib/libldap-2.4.so /usr/local/lib/libldap-2.4.so.5 Bad bad. Generally, programmers don't bump library versions, breaking backwards compatibility, for fun. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
Hi Pieter, Pieter Donche wrote: Since yesterday, I get at $ php --version PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ldap.so' - Shared object "libldap-2.4.so.5" not found, required by "ldap.so" in Unknown on line 0 have you upgrade openldap the last days (i expect yes)? If yes, read the /usr/ports/UPDATING Bye, Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
Pieter Donche wrote: > On Tue, 24 Feb 2009, Vasadi I. Claudiu Florin wrote: > >> what does php --versionsay now? > > the same as before : > > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/local/lib/php/20060613/ldap.so' - Shared object "libldap-2.4.so.5" not > found, required by "ldap.so" in Unknown on line 0 > PHP 5.2.8 with Suhosin-Patch 0.9.6.3 (cli) (built: Jan 19 2009 08:43:08) > Copyright (c) 1997-2008 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies I had a similar problem. You not gonna love it, but according to /usr/ports/UPDATING: 20090216: AFFECTS: users of net/openldap24-{client,server} AUTHOR: delp...@freebsd.org OpenLDAP has been upgraded to 2.4.14, which requires a shared library version bump. Therefore, you need to reinstall all ports depending on it. Run something like: # portupgrade -fr net/openldap24-client Regards, Mikhail. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
On Tue, 24 Feb 2009, Vasadi I. Claudiu Florin wrote: what does php --versionsay now? the same as before : PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ldap.so' - Shared object "libldap-2.4.so.5" not found, required by "ldap.so" in Unknown on line 0 PHP 5.2.8 with Suhosin-Patch 0.9.6.3 (cli) (built: Jan 19 2009 08:43:08) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: PHP5 and ldap
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Pieter Donche Sent: Tuesday, February 24, 2009 9:12 AM To: mail.list freebsd-questions Subject: PHP5 and ldap Since yesterday, I get at $ php --version PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ldap.so' - Shared object "libldap-2.4.so.5" not found, required by "ldap.so" in Unknown on line 0 I see that my /usr/local/lib/ now contains lrwxr-xr-x 1 root wheel 16 Feb 23 14:09 libldap-2.4.so -> libldap-2.4.so.6 -rw-r--r-- 1 root wheel 307762 Feb 23 14:09 libldap-2.4.so.6 etc.. so, only references to libldap-2.4.so.6, but no more libldap-2.4.so.5 [snipped] So php5-ldap was already the last version... What's going wrong and how to solve all that ? % ln -s /usr/local/lib/libldap-2.4.so /usr/local/lib/libldap-2.4.so.5 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP5 and ldap
what does php --versionsay now? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
PHP5 and ldap
Since yesterday, I get at $ php --version PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ldap.so' - Shared object "libldap-2.4.so.5" not found, required by "ldap.so" in Unknown on line 0 I see that my /usr/local/lib/ now contains lrwxr-xr-x 1 root wheel 16 Feb 23 14:09 libldap-2.4.so -> libldap-2.4.so.6 -rw-r--r-- 1 root wheel 307762 Feb 23 14:09 libldap-2.4.so.6 etc.. so, only references to libldap-2.4.so.6, but no more libldap-2.4.so.5 Yesterday, I indeed reinstalled apache (with an extra option checked to include some extra module) The # make install clean downloaded openldap-2.4.14 (up to then I had open-ldap-2.3.13) but stopped with ===> An older version of net/openldap24-client is already installed (openldap -client-2.4.13) You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of net/openldap24-client without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 I did # cd /usr/ports/net/openldap24-client # make deinstall which said: pkg_delete: package 'openldap-client-2.4.13' is required by these other package s and may not be deinstalled (but I'll delete it anyway): apache-2.2.11_3 arts-1.5.10_1,1 cups-base-1.3.9_3 cups-pstoraster-8.15.4_2 dbus-qt3-0.70_2 gconf2-2.24.0 gtk-2.14.7 gutenprint-base-5.1.7_1 gutenprint-cups-5.1.7_3 hplip-2.8.2_3 kde-3.5.10_1 kdeaccessibility-3.5.10 kdeadmin-3.5.10 kdeartwork-3.5.10_1 kdeartwork-3.5.10_1 kdebase-3.5.10_2 kdebase-kompmgr-3.5.10 kdeedu-3.5.10 kdegames-3.5.10 kdegraphics-3.5.10 kdelibs-3.5.10 kdemultimedia-3.5.10 kdenetwork-3.5.10 kdepim-3.5.10_2 kdesdk-3.5.10_1 kdetoys-3.5.10 kdeutils-3.5.10 kdevelop-3.5.3_1 kdewebdev-3.5.10_1,2 koffice-1.6.3_7,2 libgsf-1.14.11 libwpd-0.8.14_1 php5-5.2.8 php5-ctype-5.2.8 php5-dom-5.2.8 php5-extensions-1.2 php5-filter-5.2.8 php5-gd-5.2.8 php5-hash-5.2.8 php5-iconv-5.2.8 php5-json-5.2.8 php5-ldap-5.2.8_1 php5-mysql-5.2.8 php5-mysqli-5.2.8 php5-pdo-5.2.8 php5-pdo_sqlite-5.2.8 php5-posix-5.2.8 php5-session-5.2.8 php5-simplexml-5.2.8 php5-spl-5.2.8 php5-sqlite-5.2.8 php5-tokenizer-5.2.8 php5-xml-5.2.8 php5-xmlreader-5.2.8 php5-xmlwriter-5.2.8 poppler-qt-0.8.7 py25-qt-3.17.4_1,2 qscintilla-1.7.1_4 qt-3.3.8_9 subversion-1.5.5_1 wv2-0.2.3_2 # make reinstall this ended without errors Did I need to update php5? I tried # portsnap fetch # portsnap update # cd /usr/ports/lang/php5 # portupgrade -R php5 this only upgraded my perl to perl-5.8.9_1 but changed nothing to my PHP5 (/usr/local/bin/php same date as weeks ago) So, this did not solve the initial problem also.. I Tried # cd /usr/ports/net/php5-ldap # portupgrade -R php5-ldap [Gathering depends for net/php5-ldap ... done] [Exclude up-to-date packages .. done] macos# macos# make install clean ... ===> php5-ldap-5.2.8_1 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of net/php5-ldap without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 So php5-ldap was already the last version... What's going wrong and how to solve all that ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"