Curl version on command line is different to PHP
9,125
libcurl
is not curl
. To update libcurl
, use your OS's package management utilities.
Related videos on Youtube
Author by
Laurence
Full stack web developer. Mainly develop Laravel web applications. Also have experience in Vue, Electron, Node, PHP, jQuery, mySQL, AB Testing. Generally follow TDD techniques when possible.
Updated on September 18, 2022Comments
-
Laurence over 1 year
I've got PHP version
5.5.21-1+deb.sury.org~precise+2
running with Apache2 under Ubuntu 12.04When I run
phpinfo()
it shows the curl version as7.22.0
When I run
curl --version
via the command line - it shows the version as7.34.0
How do I get PHP to use the newer version? I need a curl version
>=7.24.0
for my needsEdit: ok - I've half solved the problem - this is my
curl --version
output:curl 7.39.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
So I have curl 7.39 - but libcurl/7.22
How do I update libcurl?