PHP Curl is not loading in PHP 7.3.3 for windows 8.1 64 bit
Get the solution ↓↓↓Solution:
This won't "fix" the bug, but you might try using the DLL from another version of PHP https://windows.php.net/downloads/releases/archives/
I tookPHP 7.3.2 win32 VC15 x64
, and thephp_curl.dll
from it seems compatible withPHP 7.3.3 Win32 VC 15
, which is my PHP installed version.
Answer
Solution:
This works for me :)
Add the following to the end of Apache/conf/httpd.conf:
load curl and open ssl libraries
LoadFile "C:/(path to php folder)/libssh2.dll"
Answer
Solution:
To solve the problem, copy the following 3 files from the PHP root folder to the Apache'sbin
subfolder:
libeay32.dll
libssh2.dll
ssleay32.dll
Then restart the Apache's service.
Answer
Solution:
Solved my issues in this matter configuring in httpd.conf with the option
PHPIniDir=C:/PHP7
must test php, on extensions, on the command line with
php -m
Answer
Solution:
They have changed the paths. If you have installed PHP in C:\php7\ directory, then you need to put something like this in your php.ini file.
extension=/php7/ext/php_sockets.dll
Answer
Solution:
A Gotcha! on Windows, if you typically run one of several different versions of PHP, would be that your Apache referenced version might be out of sync with your windows environment var PHP version. Discovered this because I typically work with legacy code in various versions and oddly curl refused to load even though all the configuration in Apache and PHP were correct... Then I remembered my previous job was using PHP 5.4 As soon as I changed my env var to the current version of PHP Apache and PHP loaded curl
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: npm err! code 1
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.