Call to undefined function curl_init()

avishay.g

Registered
Aug 6, 2019
1
0
1
Israel
cPanel Access Level
Root Administrator
Hi,
I'm getting this fatal error when trying to access my website: "Call to undefined function curl_init()"
I followed this guide:
basezap.com/solvedcall-to-undefined-function-curl_init-whm/

cURL extension is marked as "installed" for all php versions.
After it didn't work, I follow this thread Call to undefined function curl_init() How to solve this ?
changed the values of Cpanel::Easy::PHP5::Curl and Cpanel::Easy::PHP5::CurlSSL to 1, and it still not working
(I don't have any script called /scripts/makecpphp)

Also tried to reset apache service.

What can be the issue?

WHM version: 82.0.7
cPanel version: 82.0
Apache version: 2.4.33
PHP Version: 5.6.35
 
Last edited by a moderator:

Henry Carter

Member
Jul 31, 2019
18
0
1
India
cPanel Access Level
Website Owner
Hi avishay,

curl is an extension that needs to be installed, it's got nothing to do with the PHP version. #yum install php-common You can also specifically install the php-curl extension #yum install php-curl If it is installed Go to your php.ini/.user.ini file and remove the ; mark from the beginning of the following line: ;extension=php_curl.dll
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,762
535
263
Houston
cPanel Access Level
DataCenter Provider
@avishay.g

Please let us know if the advice provided by @Henry Carter helps and if you still have questions or concerns.