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 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
For the subversion php5.6 use the following command (tested for Ubuntu 14.04):
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/
Next command:
Next command:
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
Edit php.ini
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:
and then:
add this command:
extension=curl.so
the last thing
restart
apacheYou need to install the php5-curl package.
Run following command
For php 5.6 this will do the trick: