Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook needs the CURL PHP extension

Tags:

I'm trying to run my first facebook php application on my apache server. It gives error Facebook needs the CURL PHP extension.. I have added line extension=php_curl.dll in php.ini and it runs normally in phpStorm ide. But it still gives error in web browser when I put php files into apache directory and run server manually.

like image 385
narek.gevorgyan Avatar asked Dec 11 '11 16:12

narek.gevorgyan


People also ask

What is cURL enabled?

The cURL stands for client URL. It allows us to connect with other URLs and use their responses in our code. The cURL is a way that can hit a URL from our code to get an html response from it. The cURL is also used in command lines or scripts for data transfer.


2 Answers

I was also getting the error. I tried this command.

sudo apt-get install curl libcurl3 libcurl3-dev php5-curl  

and my problem was resolved.

like image 111
Ashish Yadav Avatar answered Sep 28 '22 22:09

Ashish Yadav


in a new php page type:

<?php phpinfo(); ?> 

in there check to see which php.ini you need to edit.

Loaded Configuration File: ________ path to ini file you must edit _______ 

Also, use this page to see if the server thinks curl is enabled. do you see this line:

 cURL support   enabled 

if it is not enabled after editing the ini file and restarting the web server, things depend on how you installed php

this guide looks promising enough

like image 26
uncreative Avatar answered Sep 28 '22 22:09

uncreative