Install PHP cURL extension on PHP7

Spread the love

I got error that curl_init() is not defined.

'curl_init' is not defined

So I typed phpinfo(); and I don’t see cURL extension.

So installed curl for PHP7

apt-get update
apt-get install php7.0-curl

Works fine after that.

If you are using old php5 version,

sudo apt-get install php5-curl
PHP7 CURL extension
PHP7 CURL extension
Facebook Comments

Published by

Titus Choi

I love technology. Working for information technology. Interested in AVR technology. Playing with RC stuff.