[Bug 544052] Re: Fatal error: Call to undefined function ldap_connect()

kloostec kloostec at gavintech.com
Mon Mar 22 23:08:15 GMT 2010


I've also run into this problem.  Even with php5-ldap installed (and
after restarting apache, etc.), I cannot call the ldap_connect()
function:

Fatal error: Call to undefined function ldap_connect() in [some_path] on
line 33

To reproduce:

sudo apt-get install php5 php5-ldap libapache2-mod-php5
sudo vi /var/www/test.php

enter these contents:

<?php
ldap_connect();
?>

Then hit http://localhost/test.php.  You should receive the error above.
If not, you need to edit /etc/php5/apache2/php.ini, turn display_errors
to On, then restart apache.

-- 
Fatal error: Call to undefined function ldap_connect()
https://bugs.launchpad.net/bugs/544052
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list