I currently have PHP 5.3 installed with Apache in 10.04 Lucid. How can I add the PHP Curl libraries? Do I need to install any other dependencies for curl?
I believe that the package php5-curl should do the trick. Use the package manager of your choice and the deps should be taken care of.
You will need to restart the server afterwards:
Alternatively, if you are using php-fpm, you'll need to restart php5-fpm instead
My conf: Ubuntu 11.10, already installed mysql,php5 and apache2, before installing php5-curl in terminal I did:
edit sources list like:
you can check your configuration in http://repogen.simplylinux.ch/
You get something like this:
Your answer here is n
Next lines print out:
Your answer here is y.
In your browser open phpinfo(), check property:
In that folder you should now have curl.so
find "dynamic extensions" add code below:
After that restart apache2 and check phpinfo(), curl must be enabled
full solution for install LAMP and cURL extension:
add this command:
the last thing
Run following command