Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cURL for PHP/Apache of WHM

Discussion in 'EasyApache' started by dkphp, Aug 3, 2010.

  1. dkphp

    dkphp Member

    Joined:
    May 25, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. ManojB

    ManojB Well-Known Member

    Joined:
    Mar 25, 2005
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 ManojB, Aug 3, 2010
    Last edited: Aug 3, 2010
  3. dkphp

    dkphp Member

    Joined:
    May 25, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    51
    thanks so much. It's work !
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice