Home > Article > Backend Development > Solve the problem of not loading php_curl.dll extension in php
This article introduces how to solve the problem of unable to load php_curl.dll extension in php. Friends in need can refer to it.
Method 1, php_curl.dll is already built-in. In the ext directory, this DLL is used to support SSL and zlib. Find extension=php_curl.dll in php.ini and remove the previous comment. Set extension_dir=c:phpext, refresh the PHP page and report an error saying that the module php_curl.dll cannot be found. Copy php_curl.dll to windowssystem32, still the same error. Need to: libeay32.dll, ssleay32.dll, php5ts.dll, php_curl.dll Copy them all to the system32 directory and restart apache. Method 1 is available after testing. Method 2: This php_curl.dll depends on two files (ssleay32.dll and libeay32.dll). If these two files are not configured correctly, it will prompt that the dynamic library cannot be found. These two files are under the php directory. Solution: Configure it in Apache's httpd.conf file: Copy code Code example: LoadFile "D:/webserver/php/ssleay32.dll" LoadFile "D:/webserver/php/libeay32.dll"Then, restart apache to make the configuration take effect. Note that method 2 has not been tested, you can test it yourself. |