What should I do if php_ldap.dll cannot be loaded in PHP?

Source: Internet
Author: User
We sometimes encounter php_ldap.dll in PHP that cannot be loaded when the environment is just installed. I thought php_ldap.dll was loaded by default. later I learned that we need to manually configure the decompressed php. set winntphp. ini-dist... we sometimes encounter php_ldap.dll in PHP that cannot be loaded when the environment is just installed. I thought php_ldap.dll was loaded by default. later I learned that we need to manually configure the decompressed php.

Rename winntphp. ini-dist to php. ini and find it. The Windows Extensions item will use the following code:

; Extension = php_ldap.dll to extension = php_ldap.dll

The code is as follows:

Extension_dir = c: php4 extension = php_zlib.dll extension = extend extension = php_calendar.dll extension = extend extension = php_ftp.dll extension = extend (this item should not be added, no MSSQL7.0) extension = extend

Then copy the libeay32.dll and ssleay32.dll files from php5 to the following location:

C:/Windows/System/System32 C:/Windows/System C:/Windows

In this way, you can use php_ldap to check whether the php_ldap.dll file is installed, and open phpinfo () to check whether the installation is successful.

Generally, you only need to put it in the following directory and "The system cannot find php_ldap.dll" or "no php_ldap.dll problem" to solve it.

Of course, if your operating system is not installed on the C drive, you only need to replace C in the path with the drive letter for installing the operating system. if a common application cannot find the DLL file, you may only need to copy the downloaded DLL file to the directory where your started application is located.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.