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.

Libcurl/PHP cURL for internal cPanel PHP

Discussion in 'General Discussion' started by jaimedomingos, Dec 30, 2010.

  1. jaimedomingos

    jaimedomingos Registered

    Joined:
    Oct 29, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    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.
     
  3. jaimedomingos

    jaimedomingos Registered

    Joined:
    Oct 29, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Curl and curl-devel are installed. Please, read the error message in attachment below.
    View attachment cPanel PHP cURL.txt
    Thank in advance.
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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.
     
Loading...

Share This Page