Home >Operation and Maintenance >Windows Operation and Maintenance >PHP under IIS6/7 under windows server cannot load dynamic link libraries such as php_curl.dll
PHP The php_curl.dll dynamic link library cannot be loaded in IIS6 or IIS7. You can try the following methods.
Problem:
PHP cannot load the php_curl.dll dynamic link library in IIS6 or IIS7.
Solution:
There are relevant instructions in the PHP manual: php_curl.dll; CURL, client URL library Function library; requires: libeay32.dll, ssleay32.dll (included)
So just copy the two libraries libeay32.dll and ssleay32.dll to the %WINDOWS% directory.
PS: Many people on the Internet say to copy the above two libraries to %SYSTEM32%, but this does not work at all. The article will only COPY without verification, which is simply a mistake. You guys are just wasting people's time.
After some research, I found a rule, that is: a general solution to PHP's inability to load extension libraries under windows. The steps are as follows:
1. Check whether the related dynamic link library of the extension library is in the PHP extension folder (such as: /php/ext/).
2. Find relevant instructions for the extension that cannot be loaded in the PHP manual.
For example, the library that cannot be loaded is php_openssl.dll, and the relevant instructions found in the PHP manual are: php_openssl.dll; OpenSSL function library; requires: libeay32.dll (included). It can be seen that loading the php_openssl.dll library also requires the libeay32.dll library.
3. Copy the libeay32.dll library to the %WINDOWS% directory. Restart IIS and you can see openssl in phpinfo.php. It should be noted that PHP packages such as libeay32.dll (included) are copied to the %WINDOWS% directory.
The above is the detailed content of PHP under IIS6/7 under windows server cannot load dynamic link libraries such as php_curl.dll. For more information, please follow other related articles on the PHP Chinese website!