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.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to