Ubuntu で未定義の関数 ldap_connect() を呼び出す

Ubuntu で未定義の関数 ldap_connect() を呼び出す

Ubuntu 12 VM にテスト LDAP サーバーをセットアップしようとしています。次のエラーが発生しました:

Fatal error: Call to undefined function ldap_connect() in ubuntu

使用中の 5.4.34 に phpbrew の gettext 拡張機能をインストールしました。

ubuntu VM で aptitude show php5-ldap を実行すると、次の応答が返されます。

Package: php5-ldap                
State: installed
Automatically installed: yes
Version: 5.5.9+dfsg-1ubuntu4.9
Priority: optional
Section: php

以下は/etc/apache2/mods-enabled/の内容です。

ldap.conf
ldap.load
... more

そして、Apache サーバーを再起動し、VM も再起動しました。

管理ページには次のように表示されます:

Your install of PHP appears to be missing LDAP support.

Please install LDAP support before using phpLDAPadmin.
(Dont forget to restart your web server afterwards)
info    Configuration setting already defined.
A call has been made to reset a configuration value (server,host,newdom.biz)
info    Configuration setting already defined.
A call has been made to reset a configuration value (login,bind_id,cn=admin,dc=example,dc=com)

設定ファイルを見つけ出すのに苦労しました。ホスト ファイルは newdom.biz に応答するように設定されています。

$servers->newServer('ldap_pla');
$servers->setValue('server','host','ldap://ldap.newdom.biz');
$servers->setValue('server','host','newdom.biz');
$servers->setValue('server','base',array('dc=newdom,dc=biz'));

php -m | grep ldap空の結果が返されるので、明らかに PHP、または少なくとも phpbrew はそれについて認識していません。Google で検索して、phpbrew を使用してそのライブラリを指定することができましたが、slapd ldap-utils をインストールした後、ライブラリがどこにあるかわかりません。おそらく、Apache のモジュールと混同されることはないのでしょうか?

たぶん、これが私の失敗点でしょうか?どこかで失敗したのは確かですが、今はそれが見えません。ありがとう、サム

関連情報