Jun 12, 2017 Enabling cURL in Windows First you’ll need to know the location of the server’s php.ini file, and have access to edit it. If you don’t know the location.
I did change quite a bit since I started by getting the latest version of php. So all the steps as best as I can remember were: 1) download php 7.1 2) add php folder to PATH 3) update ini file with absolute path for extension directory and uncommented phpcurl.dll and phpopenssl.dll extensions 4) updated httpd.conf to load php7apache24.dll module in php folder and set PHPIniDir to php directory 5) copy libeay32.dll libssh2.dll and ssleay32.dll into apache/bin (replace existing) 6) restarted apache.–Jan 25 '17 at 16:27. This save my life (from )Upgrading to php 7.1.6 on Apache 2.4 32bit version Windows 7 x64this curl implementation works:.
C:/(path to php folder)/php.ini enable extension=phpcurl.dlllibeay32.dll, ssleay32.dll, libssh2.dll find directly in php7 folder. add this to Apache/conf/httpd.confload curl and open ssl libraries LoadFile 'C:/(path to php folder)/libeay32.dll' LoadFile 'C:/(path to php folder)/ssleay32.dll'LoadFile 'C:/(path to php folder)/libssh2.dll'If you don't find some of this DLLs, try downloaidng non-TS version fo php and copy them from that folder.
InstallationTo use PHP's cURL support you must also compile PHP -with-curl=DIRwhere DIR is thelocation of the directory containing the lib and includedirectories. In the include directory there should be a foldernamed curl which should contain the easy.h andcurl.h files. There should be a file namedlibcurl.a located in the lib directory.
BeforePHP 5.5.0 it was possible to configure PHP to use cURL for URL streams-with-curlwrappers.Note:Note to Win32 UsersIn order to enable this module on a Windows environment,libeay32.dll and ssleay32.dll, or, as of OpenSSL 1.1libcrypto-.dll and libssl-.dll,must be present in your PATH.Also libssh2.dll must be present in your PATH.You don't need libcurl.dll from the cURL site. You may be confused, as I was, by the instructions for installing cURL in php. The instruction 'To use PHP's cURL support you must also compile PHP -with-curl=DIR.' Was murky to me, since I didn't compile php when I installed it. I just copied all of the necessary files to the correct folders as described very clearly in the php manual.I am using Windows XP and Apache with php 5.1.6.
In this situation, and it may apply to php versions of 5.0 and later, all one needs to do is remove the ';' from the front of the directive extension=phpcurl.dll. You should also check to make certain that libeay32.dll and ssleay32.dll are in your php directory with the other dll's. This directory should already be in you path, so the instruction to put them in you path is not critical.You can then run phpinfo and you should see a heading for curl in the listing.Succinctly, my installation of cURL consisted of removing the semi-colon in front of the;extension=phpcurl.dll line in php.ini, saving php.ini and restarting Apache. You may wish to try this if you are using php 5.0 and later and are having difficulty understanding the instructions on the cURL installation page at php.netYou might also find the information at useful. If you are running on Windows with a Wampserver or alike preconfigured PHP, if you did everything that was advised (path is correct, dlls are in the System32 or the Wow64 folder, phpcurl extension uncommented in the php.ini, rebooted your machine and restarted your services), and you still receive messages saying that curl is not installed:- maybe you are running a command line script (and not a curl instruction within a web application). If yes, remember that there are 2 distinct php.ini configuration files: one for the php-cli commands (run php at command line) and one for the php instructions (run from a page in your www folder).Wampserver's menuitem 'php.ini' only opens the webserver's php.ini, not the php-cli one.So it will be great to check your php-cli's php.ini configuration file! (you'll find it in the php.exe's installation folder)You need to uncomment the extension phpcurl in this php.ini file for the command lines to work with curl.Also uncomment the phpopenssl extention by the way (often used with curl).I hope this fixed issue will help someone else:).
Just an additional note for Windows XP installations.The instructions others have courteously given still lack one small item for those who have the Windows/system32 directory as the repository for the.dll files concerned with phpcurl.Go to the ext directory of your php installation and copy phpcurl.dll to the Windows/system32 folder after you have followed the advise given elsewhere.So.1) remove ';' from extension=phpcurl.dll in php.ini2) ensure that ssleay32.dll and libeay32.dll are in Windows/system32.3) Copy phpcurl.dll into WindowsSystem32 as well.G'daybearstate. On Windows hosts libeay32.dll and ssleay32.dll have to be path-accessible for phpcurl.dll to work correctly. Copying them into System32 (or even into the Windows main directory) is a bad hack (and does not even work with newer PHP versions). The right way to do it, is to add the PHP path to the Windows.Path. variable.
In.Control Panel.System. click on.Advanced System Settings.
and use the button.Environment Variables. Under.System Variables. you will find the.Path. variable. Edit it and append `;C:/PHP` to it - or whatever the path to your PHP root folder is.
A tip for users that now use the latest version of Windows 7 Ultimate, Apache 2.2.22 and PHP 5.4.4. If you manually installed PHP and did not change the PHP folder name such as 'C:php-5.4.4-Win32-VC9-x86' you don't need to add the curl libs into the System32 directory. Instead, modify the php.ini cURL extension to point directly to the phpcurl.dll as follows:extension=C:php-5.4.4-Win32-VC9-x86extphpcurl.dllI added the libs to system32 and moded the path as well just in case. Worked well for me. At least for windows builds of PHP, module dependencies (such as 'libeay32.dll', 'libssh2.dll', 'ssleay32.dll', etc.
For phpcurl) are mentioned in 'snapshot.txt' included in the base folder of each PHP install.For WampServer (I'm on an old version of 2.0 but this still applies at least up to version 2.5), ensure that all dependencies are listed in an array assigned to '$phpDllToCopy' in 'Wampscriptsconfig.inc.php'.