Uncaught Error: Call to undefined function curl_init()

admin

Administrator
Staff member
I have a wordpress plugin that is trying to use curl but giving me the following error.

PHP Fatal error: Uncaught Error: Call to undefined function curl_init()

Code:
$curl = curl_init();

I have the same issue on my local dev environment and in my staging environment.

<a href="http://topmortgagepro.com/whats-your-home-worth/" rel="nofollow noreferrer">http://topmortgagepro.com/whats-your-home-worth/</a>
At the time of posting it will include the phpinfo() That will be removed if you see this at a later time. htaccess user/password is pixona:pixona to see the site.

I have tried many solutions offered with no luck. Open to ideas and can show other config settings as needed.

I have tried the following and restarted apache after each (on local machine):

Code:
apt-get install php-curl
apt-get install php7.0-curl

edited the php.ini to uncomment the following:

Code:
extension=php_curl.dll
extension=php_bz2.dll

added this extension in the php.ini

Code:
extension=php_curl.so

phpenmod curl