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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CloudLinux PHP cURL Issue

Discussion in 'EasyApache' started by adamreece.webbox, Jul 7, 2017.

Tags:
  1. adamreece.webbox

    adamreece.webbox Registered

    Joined:
    Nov 3, 2016
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Penarth, United Kingdom
    cPanel Access Level:
    Root Administrator
    Has this issue returned?

    I've noticed since a yum update yesterday that cURL no longer works via PHP 7.0 and PHP 7.1, even though the php-curl extension is provisioned via EA4. cURL does not show up in phpinfo() though. Reverting to PHP 5.6 resolves this but that's not an ideal option.

    Looks like shared dynamic library "libnghttp2.so.14" is now missing. Not found anywhere on the system. find / -type f -iname "libnghttp2.so*" and locate "libnghttp2.so*" both yield no results, which makes me wonder how this works on PHP 5.6.

    PHP will produce the following error:

     
  2. Andres Garbanzo

    Andres Garbanzo Registered

    Joined:
    Jul 7, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Costa Rica
    cPanel Access Level:
    Root Administrator
    I can confirm this issue. Please tell me if you solved it temporally and how...
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The cURL package for PHP with CloudLinux is not functioning since it's most recent release. CloudLinux is working on an update to address this issue. In the meantime, the following temporary workarounds are available:

    For CloudLinux 6.x systems, run the following commands:

    Code:
    yum downgrade ea-libcurl
    yum install ea-libnghttp2
    For CloudLinux 7.x systems, run the following command:

    Code:
    yum install libnghttp2 libnghttp2-devel
    Additionally, anyone using PHP-FPM may need to run the following command:

    Code:
    /scripts/restartsrv_apache_php_fpm
    Thank you.
     
  4. adamreece.webbox

    adamreece.webbox Registered

    Joined:
    Nov 3, 2016
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Penarth, United Kingdom
    cPanel Access Level:
    Root Administrator
    The only solution we found was reverting a site's PHP version back to 5.6. cURL does not work for both PHP 7.0 and 7.1.
    A "yum clean" and "yum update" did not resolve this.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Is your system using CloudLinux 6 or CloudLinux 7?

    Thank you.
     
  6. adamreece.webbox

    adamreece.webbox Registered

    Joined:
    Nov 3, 2016
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Penarth, United Kingdom
    cPanel Access Level:
    Root Administrator
    The server impacted is CL6.

    Looks like we posted both of our messages at the same time, so I hadn't seen or tried the fix you posted. Running "yum update" now presented the following:

    Code:
    ====================================================================================================================================
     Package                        Arch                    Version                                       Repository               Size
    ====================================================================================================================================
    Updating:
     ea-libcurl                     x86_64                  1:7.53.1-1.el6.cloudlinux.5                   cl-ea4                  1.6 M
    Installing for dependencies:
     ea-libnghttp2                  x86_64                  1:1.20.0-1.el6.1.cloudlinux                   cl-ea4                   59 k
    
    Transaction Summary
    ====================================================================================================================================
    Install       1 Package(s)
    Upgrade       1 Package(s)
    
    Total download size: 1.7 M
    Accepting this has resolved the issue for cURL on PHP 7.1.

    Thanks for getting back to us. :)
     
    cPanelMichael likes this.
  7. Skyla

    Skyla Member

    Joined:
    Apr 12, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    We are running CL7 and this issue just came up for us. The provided fix from CL (dated April 19th) does not work - there are no pending updates even after yum clean all.

    Will reach out to CL but just letting anyone who may have similar problems know.

    As a workaround, reverting to php5.6 resolved the problem.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    For CloudLinux 7 systems, please try installing the "libnghttp2" package as a temporary workaround:

    Code:
    yum install libnghttp2
    Thank you.
     
    #8 cPanelMichael, Jul 7, 2017
    Last edited: Jul 10, 2017
  9. massafiri

    massafiri Member

    Joined:
    Apr 8, 2016
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne
    cPanel Access Level:
    Root Administrator
    I'm still getting this problem, even after running all the commands above.

    Using CL6.9

    Any suggestions?
     
  10. massafiri

    massafiri Member

    Joined:
    Apr 8, 2016
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne
    cPanel Access Level:
    Root Administrator
    We're experiencing this problem now, seems to have happened automatically over night.
    Now all versions of PHP 7+ do not have CURL loaded, we've checked php.d and can see the .ini configuration that imports cURL - so it's a little confusing to see why this has happened all of a sudden.

    A prompt resolution is needed.
     
  11. massafiri

    massafiri Member

    Joined:
    Apr 8, 2016
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne
    cPanel Access Level:
    Root Administrator
    I opened a ticket and the resolution was to downgrade the ea-libcurl package and install the ea-libnghttp2 package.

    Didn't get any of the commands to do the actions, but hopefully this will help someone else.

    Thanks to cPanel support.
     
  12. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    96
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    We're experiencing the same issue on CloudLinux 7. Installing libnghttp2-devel doesn't resolve the issue.
    We're using Litespeed.

    Anyone know of a fix?
     
  13. ProDesignz

    ProDesignz Member

    Joined:
    Mar 16, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    We are also facing the same issue since yesterday. I tried everything like
    Code:
    yum update
    then
    yum install libnghttp2-devel
    But nothing works, finally I downgrade to PHP version 5.6 and my WHMCS billing works again.
    My CloudLinux version is 6.9 and CentOS is 2.6.32-673.26.1.lve1.4.29.el6.x86_64

    Is there any solution or still its an issue.
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I've updated my earlier post to reflect the updated workaround instructions. Please let us know if any issues persist after following the updated instructions.

    I'll update this thread with new information as it becomes available.

    Thank you.
     
  15. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    96
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Was this fixed in the latest update?
     
  16. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Yes, CloudLinux has published a resolution. Here's the corresponding blog post:

    PHP for EasyApache 4 updated

    Notice the entry at the bottom of the blog post:

    Thank you.
     
Loading...

Share This Page