The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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:
    6
    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
     
    #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:
    1
    thanks so much. It's work !
     
Loading...

Share This Page