What to do if php_curl cannot be loaded

藏色散人
Release: 2023-03-08 19:10:01
Original
2982 people have browsed it

Solution to the problem that php_curl cannot be loaded: 1. In php.ini, remove the semicolon in front of "extension=php_curl.dll"; 2. Configure ssleay32 in Apache's httpd.conf file. dll and libeay32.dll are enough.

What to do if php_curl cannot be loaded

The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer

Unable to load php_curl.dll solution

Today you need to load the dynamic library php_curl.dll, and remove the semicolon in front of extension=php_curl.dll in php.ini. However, when starting Apache, it still prompts that the file php_curl.dll cannot be loaded, and there is also the file php_curl.dll under the ext directory, but why it cannot be found is really puzzling.

Then I checked on Google. The information on the Internet all said that the path of extension_dir was not configured or extension=php_curl.dll was not opened. But the problem was that I had removed the semicolon in front of it.

Later I saw an article and the problem was finally solved: the reason is that not all dll files can be opened directly, and some depend on some files. For example, 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:

LoadFile "D:/webserver/php/ssleay32.dll"
LoadFile "D:/webserver/php/libeay32.dll"
Copy after login

Then restart the apache service and it will be ok.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What to do if php_curl cannot be loaded. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template