Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable CURL on Windows For PHP5.6.4

Im trying to use HybridAuth in one of my projects, the error message im getting is

Original error message: Hybridauth Library needs the CURL PHP extension.

Even though i have enabled cURL in my php.ini extension=php_curl.dll

here is a screenshot of my phpinfo()

enter image description here

What else i have to do in-order to enable the cURL extension, the related php_curl.dll is also present in the ext dir

Message that i get when i restart the apache server

C:\Apache24\bin>httpd -k restart AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::a02e:1c05:c6ad:9332. Set the 'ServerName' directive globally to suppress this message

enter image description here

like image 244
John x Avatar asked Jan 05 '15 08:01

John x


People also ask

What is php5 cURL?

PHP cURL is a library that is the most powerful extension of PHP. It allows the user to create the HTTP requests in PHP. cURL library is used to communicate with other servers with the help of a wide range of protocols. cURL allows the user to send and receive the data through the URL syntax.


2 Answers

You have to add PHP install path to windows environment path. For example it you install php on C:\PHP, add both C:\PHP and C:\PHP\ext to windows path. Some how Apache cannot find curl dependencies libeay32.dll, ssleay32.dll and libssh2.dll

like image 107
James Avatar answered Sep 23 '22 14:09

James


Try this:

if  (in_array  ('curl', get_loaded_extensions())) {
    echo "cURL is installed on this server";
}
else {
    echo "cURL is not installed on this server";
}

See, if that works.

like image 44
Gaurav Dave Avatar answered Sep 25 '22 14:09

Gaurav Dave