cURL for PHP/Apache of WHM

dkphp

Member
May 25, 2010
18
0
51
Hi,

I want enable cURL in Apache of cPanel/WHM, which one run on port 2086.

Not in Users/Client s Apache of port 80.

I have the PHP.ini in /usr/local/cpanel/3rdparty/etc

And don't have cURL.

Help me, thanks.
 

ManojB

Well-Known Member
Mar 25, 2005
80
0
156
pune
You can check the php modules for your cpanel php using the following command :

/usr/local/cpanel/3rdparty/bin/php -m

If you wish to enable curl then edit the file : /var/cpanel/easy/apache/profile/makecpphp.profile.yaml

Change 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 execute : /scripts/makecpphp --force
 
Last edited: