I fixed it:
1) Edit php.ini file Include (uncomment) php_curl.dll and php_openssl.dll extensions
2) go to c: / php7 /
Copy the libssh2.dll file to the c: / apache24 / bin folder.
3) test by: curl_test.php
<?php // Script to test if the CURL extension is installed on this server // Define function to test function _is_curl_installed() { if (in_array ('curl', get_loaded_extensions())) { return true; } else { return false; } } // Ouput text to user based on test if (_is_curl_installed()) { echo "cURL is <span style=\"color:blue\">installed</span> on this server"; } else { echo "cURL is NOT <span style=\"color:red\">installed</span> on this server"; } ?>
source share