PHP Curl is not loading in PHP 7.3.3 for windows 8.1 64 bit

8.7k views Asked by At

I have gone through other similar questions but i cannot find a proper solution. I am a newbie to PHP. As per suggestions in youtube i have done php configuration with apache2.4 and php is working fine. I have enabled the extensions in php.ini file and uncommented curl dll. I refreshed the Apache and reloaded the web page but the Curl is not loaded. It seems in PHP 7 versions the configuration is dynamic in php.ini . I couldn't able to figure out where the changes needed to be done. Please help.

PHP 7.3.3 version php.ini file is attached here php.ini

6

There are 6 answers

0
Tomislav Parčina On

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

0
Xenos On

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 took PHP 7.3.2 win32 VC15 x64, and the php_curl.dll from it seems compatible with PHP 7.3.3 Win32 VC 15, which is my PHP installed version.

0
Greg On

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

0
user1747895 On

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"

1
Dmitrii Fediuk On

To solve the problem, copy the following 3 files from the PHP root folder to the Apache's bin subfolder:

  • libeay32.dll
  • libssh2.dll
  • ssleay32.dll

Then restart the Apache's service.

0
Marcelo Nunes On

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