[ubuntu] php5-curl isn’t recognized as extension

You shouldn’t need to edit php.ini. When you install php5-curl it puts curl.ini in /etc/php5/apache2/conf.d/ which contains extension=curl.so. So your PHP is trying to load the extension twice.
Undo your changes to php.ini then restart Apache.

That sure is strange. I don’t suppose curl.ini has a different owner or permissions than the other files?
If it’s the same as the others, my next step would be to apt-get purge php5 and php5-curl then reinstall them.

 

Reading the command-line output during ‘sudo apt-get install php5-curl’ gave me the final hint: Some packages could not be installed.
Solution for my case was to update the packagelists and run a new install:
sudo apt-get update
sudo apt-get install php5-curl
(no configuration at php.ini was needed)
maybe this helps – good luck.

Source: http://ubuntuforums.org/showthread.php?t=1519176