When i am going to implement Authorize.net payment gateway. However, I got this error:
Call to undefined function curl_init()
Please let me know what is wrong in it.
When i am going to implement Authorize.net payment gateway. However, I got this error:
Call to undefined function curl_init()
Please let me know what is wrong in it.
If you're on Windows:
Go to your php.ini file and remove the ;
mark from the beginning of the following line:
;extension=php_curl.dll
After you have saved the file you must restart your HTTP server software (e.g. Apache) before this can take effect.
For Ubuntu 13.0 and above, simply use the debundled package. In a terminal type the following to install it and do not forgot to restart server.
sudo apt-get install php-curl
Or if you're using the old PHP5
sudo apt-get install php5-curl
or
sudo apt-get install php5.6-curl
Then restart apache to activate the package with
sudo service apache2 restart
php_curl.dll
for PHP 5.3.13 (or 5.4.3). I had everything configured right but curl
just wasn't being loaded (not showing up in phpinfo()
). This fixed my issue.
Nov 12, 2012 at 15:09
extension=php_curl.so
in your php.ini and restart apache
Mar 5, 2015 at 13:54
sudo apt-get install php-curl
then sudo service apache2 reload
done!
Nov 16, 2016 at 17:15
The CURL extension ext/curl
is not installed or enabled in your PHP installation. Check the manual for information on how to install or enable CURL on your system.
c:\php
to my PATH. I learned that reading the manual from the link above. The manual said libeay32.dll
and ssleay32.dll
must both be on the PATH for the module to work.