views:

206

answers:

1

I have installed ubuntu Lamp stack.But the curl is not enabled neither i can find extension listed in the INI file, i added manually but it didn't worked too.

How should enable Curl then ?

A: 

From http://buzznol.blogspot.com/2008/12/install-curl-extension-for-php-in.html:

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

After installing libcurl you should restart the web server with following command,

sudo /etc/init.d/apache2 restart

rabidmachine9
Nop , didn't worked :(
Arsheep
@Arsheep "didn't worked" is exceedingly unhelpful. Did it give you an error? Did your computer explode? Did your house burst into flames?
Michael Mrozek
No errors and no flames man , it installed successfully i restarted Apache and retried the curl code But the same error again " Call to undefined function curl_init() "
Arsheep
@Michael Mrozek - That command caused my hamster to spontaneously reproduce asexually, my goldfish to swim upside down and my kid now does her homework willingly. My God, what have you done??
Tim Post
phpinfo is your friend http://php.net/manual/en/function.phpinfo.php
leonbloy
@leonbloy - okay i saw phpinfo() too only one "curl" word i can found in "Additional .ini files parsed - curl.ini". Does that mean something ?
Arsheep