Libcurl/PHP cURL for internal cPanel PHP

jaimedomingos

Registered
Oct 29, 2009
2
0
51
Hi, guys.
How do I install/enable libcurl for internal cPanel PHP?
I ran a php script in WHM and I got a message:
Unable to load dynamic library '/usr/local/cpanel/3rdparty/lib/php/extensions/no-debug-non-zts-20060613/php_curl.so'

I have edited the file : /var/cpanel/easy/apache/profile/makecpphp.profile.yaml

Changed the following from :

Cpanel::Easy::PHP5::Curl: 0
Cpanel::Easy::PHP5::CurlSSL: 0

To

Cpanel::Easy::PHP5::Curl: 1
Cpanel::Easy::PHP5::CurlSSL: 1

After making the above changes I ran : /scripts/makecpphp and /scripts/makecpphp --force but it not works and I got a error message.
Please, can someone help me?
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
23
143
Houston, TX
cPanel Access Level
Root Administrator
What is the actual error message that you see when you run /scripts/makecpphp?

Are both the curl and the curl-devel RPM packages installed on your server?

Code:
# rpm -q curl
curl-7.15.5-9.el5
# rpm -q curl-devel
curl-devel-7.15.5-9.el5
If they are not installed, you should be able to install them using yum.

We may be able to help you further if you can post the exact error message you see. Without knowing the error that is happening, the best we can do is speculate.
 

jaimedomingos

Registered
Oct 29, 2009
2
0
51
What is the actual error message that you see when you run /scripts/makecpphp?

Are both the curl and the curl-devel RPM packages installed on your server?

Code:
# rpm -q curl
curl-7.15.5-9.el5
# rpm -q curl-devel
curl-devel-7.15.5-9.el5
If they are not installed, you should be able to install them using yum.

We may be able to help you further if you can post the exact error message you see. Without knowing the error that is happening, the best we can do is speculate.
Curl and curl-devel are installed. Please, read the error message in attachment below.
View attachment cPanel PHP cURL.txt
Thank in advance.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Curl and curl-devel are installed. Please, read the error message in attachment below.
View attachment 4801
Thank in advance.
Please submit a support request so that we may assist with determining the cause of difficulty per the output from EasyApache via makecpphp; please link to this forums thread in your support ticket. When available, please post your ticket ID number here so that we can follow-up internally.