Report this

What is the reason for this report?

cURL is NOT installed in my PHP7 installation

Posted on May 23, 2016

I am running a script and I have this Fatal error: Call to undefined function curl_init() in /var/www/html/wp-content/plugins/accesspress-social-login-lite/twitter/twitteroauth.php on line 189

it appears curl is not enabled in my install, how may I go about it?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

run the following command

apt-get install php7.0-curl

Depending on your distribution, install curl with one of the following:

On CentOS or other yum based package systems

  • yum install php-curl
  • yum install curl

On Debian or other apt-get based package systems

  • apt-get install curl
  • apt-get install libcurl
  • apt-get install php-curl

I haven’t used php7 as of yet. However, as newbie states above, you might try installing curl using apt-get install php7-curl or yum install php7-curl.

Yes. Working perfectly too. Thanks

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.