Home  >  Article  >  Backend Development  >  What to do if php fails to open curl

What to do if php fails to open curl

藏色散人
藏色散人Original
2020-08-18 09:39:502699browse

Solution to the failure of php to open curl: First find and open the "php.ini" file; then remove the semicolon before "curl_dll"; then copy the "libssh2.dll" file to "apache\bin" " directory; finally configure "httpd.conf".

What to do if php fails to open curl

Recommended: "PHP Video Tutorial"

php curl module cannot be opened problem solution

Configure php.ini and remove the semicolon before curl_dll.

As shown:

What to do if php fails to open curl

Replace libssh2.dll, php_curl Copy the .dll, ssleay32.dll, libeay32.dll files to the windows\system32 directory

Copy the libssh2.dll file to the apache\bin directory

If the above cannot be solved:

Configure it in Apache’s httpd.conf file:

LoadFile "D:/webserver/php/ssleay32.dll"
LoadFile "D:/webserver/php/libeay32.dll"

The above is the detailed content of What to do if php fails to open curl. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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