0

i am using php 5.5.9. ubuntu 14.04 os . try to run the php function

curl_init()

it shows an error Call to "undefined function curl_init()" then 1.i installed curl (How to enable curl, installed Ubuntu LAMP stack?) 2. i checked " php.ini to remove comment extension but i not found the text in php.ini .

still i have the error i restarted apache many times. please help.

Community
  • 1
  • 1
Anoop
  • 31
  • 1
  • 5

1 Answers1

1

I'm unsure of what your problem really is..

Try this, I'm sure this WORKS.

To purge all curl and apache2 packages

sudo apt-get purge curl libcurl3 libcurl3-dev php5-curl apache2

To Install curl and apache2

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

Restart apache2

sudo service apache2 restart

After restarting your web-server, go to /etc/php5/apache2/php.ini search for ;extension=php_curl.dll and remove the ; (uncomment) and save the file, restart apache2 sudo service apache2 restart again.

Everything should WORK fine now.

Gururaju Hiddenx
  • 199
  • 1
  • 4
  • 19