douzi9744 2016-11-14 22:19
浏览 306

致命错误:调用未定义的函数ldap_connect()

I'm running a CentOS 6.5/PHP virtual box and I'm getting this error when running an LDAP PHP app:

Fatal error: Call to undefined function ldap_connect()

I thought perhaps php-ldap didn't install so I ran this:

$ sudo yum install php-ldap
Loaded plugins: priorities
Setting up Install Process
1134 packages excluded due to repository priority protections
Package php-ldap-5.5.38-5.el6.remi.x86_64 already installed and latest version
Nothing to do

I also updated my php.ini file like so:

[ldap]
; Sets the maximum number of open links or -1 for unlimited.
ldap.max_links = -1
extension=ldap.so

However, the error persists. Any ideas what I'm doing wrong?

  • 写回答

1条回答 默认 最新

  • drqj8605 2016-11-14 22:27
    关注

    If you are running PHP as apache module, then you should check the apache logs for any startup errors? Generally problems loading modules are present there. Also check php.ini setting to see that extension_dir is set to have the directory containing the ldap.so

    评论

报告相同问题?

悬赏问题

  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。