Call to Undefined Function Curl_Init() Even It Is Enabled in PHP7

Call to undefined function curl_init() even it is enabled in php7

I've had similar problem with curl after upgrade to XX (16.04).
After reinstalling curl with:

sudo apt-get install php-curl

And server restart

sudo service apache2 restart

everything went back to normal :)

Call to undefined function curl_init() after updating PHP version in WAMP

This is very dumb of me, but I finally solved it, leaving this answer here in case anyone struggles with the same problem.

I needed to update Apache from 2.4.33 to 2.4.47. Seems like the .33 version had problems with loading the cURL extension in PHP 7.4 for some reason.

Fatal Error Call to undefined function curl_init()

I was able to finally solve this issue by finding a file in my PHP root folder called libssh2.dll and copy/paste into the Apache bin folder. Once I did that, curl is now enabled, and I no longer get the error in question. I'm getting other errors, but that's for another question.

Call to undefined function curl_init() - with WAMP

WAMP 2.2 comes with a wrong cURL extension. You should download the fixed file from the following link:

http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/. Then replace the file php_curl.dll into /php5.4.3/ext/.

PHP Fatal error: Call to undefined function curl_init()

You need to install CURL support for php.

In Ubuntu you can install it via

sudo apt-get install php5-curl

If you're using apt-get then you won't need to edit any PHP configuration, but you will need to restart your Apache.

sudo /etc/init.d/apache2 restart

If you're still getting issues, then try and use phpinfo() to make sure that CURL is listed as installed. (If it isn't, then you may need to open another question, asking why your packages aren't installing.)

There is an installation manual in the PHP CURL documentation.

Call to undefined function curl_init(), but it's enabled

Replace the dll file found in ext folder with the correct version here:

http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/

I am using win 8 64bit so the version for me was:

http://www.mediafire.com/?0hm40owj08y68p7



Related Topics



Leave a reply



Submit