Skip to main content

CloudLinux PHP cURL Issue

Comments

15 comments

  • Andres Garbanzo
    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:

    I can confirm this issue. Please tell me if you solved it temporally and how...
    0
  • cPanelMichael
    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:
    yum downgrade ea-libcurl yum install ea-libnghttp2
    For CloudLinux 7.x systems, run the following command:
    yum install libnghttp2 libnghttp2-devel
    Additionally, anyone using PHP-FPM may need to run the following command:
    /scripts/restartsrv_apache_php_fpm
    Thank you.
    0
  • Adam Reece | WebBox
    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.
    0
  • cPanelMichael
    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.

    Is your system using CloudLinux 6 or CloudLinux 7? Thank you.
    0
  • Adam Reece | WebBox
    Is your system using CloudLinux 6 or CloudLinux 7? Thank you.

    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:
    ==================================================================================================================================== 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. :)
    0
  • Skyla
    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.
    0
  • cPanelMichael
    Hello, For CloudLinux 7 systems, please try installing the "libnghttp2" package as a temporary workaround:
    yum install libnghttp2
    Thank you.
    0
  • massafiri
    I'm still getting this problem, even after running all the commands above. Using CL6.9 Any suggestions?
    0
  • massafiri
    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.
    0
  • massafiri
    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.
    0
  • DennisMidjord
    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?
    0
  • ProDesignz
    We are also facing the same issue since yesterday. I tried everything like
    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.
    0
  • cPanelMichael
    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.
    0
  • DennisMidjord
    Was this fixed in the latest update?
    0
  • cPanelMichael
    Was this fixed in the latest update?

    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: This release fixes the issue "Unable to load dynamic library '/opt/cpanel/ea-php??/root/usr/lib64/php/modules/curl.so' - libnghttp2.so.14".
    Thank you.
    0

Please sign in to leave a comment.