How to update cURL to the latest version on a Plesk server

Follow

Comments

13 comments

  • Avatar
    Andres

    A more straightforward update method would be really appreciated.

  • Avatar
    Lev Iurev

    @Andrés Zsögön  it is the simplest way.

  • Avatar
    wp4all

    Hi,

    we did the upgrade because of security issue by the default version of cURL 7.29.0.

    But after the upgrade yum was broken :

    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:
    
       /usr/lib64/libcurl.so.4: undefined symbol: libssh2_knownhost_init
    
    Please install a package which provides this module, or
    verify that the module is installed correctly.

    The Upgrade was successful but now yum is not working .

    Has somebody an idea what we should change ?

    Thank you

    Christian

     

     

  • Avatar
    Ivan Postnikov

    @wp4all, such behavior may be caused by CentOS bug. The bug description and resolution may be found on the official website.

  • Avatar
    Jamie C (Edited )

    May be obvious to all but just in case it isnt.. curl and libcurl were listed in my yum versionlock (https://access.redhat.com/solutions/98873) so the above help didn't seem to work / allow me to proceed past step 3.  Once they were removed from the versionlock it was easy to upgrade without issue with the above instructions

    yum versionlock clear

    cURL / liburl updates were required to re-enable connection to WordFence scanning servers

  • Avatar
    Ivan Postnikov

    Hello @Jamie C!

    Thank you for sharing your case, this may be useful for other Pleskians.

  • Avatar
    Mike Tree

    I've upgraded to 7.60.0 using city-fan.repo method.

     curl --version

    curl 7.60.0 (x86_64-redhat-linux-gnu) libcurl/7.60.0 NSS/3.34 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.8.0 nghttp2/1.31.1

     

    but php.info shows 7.29.0

  • Avatar
    Mike Tree

    It seems you then need to do this....

    "To make changes in phpinfo it is required to restart PHP-FPM services in Plesk > Tools & Settings > Services Management."

  • Avatar
    Ivan Postnikov

    Hi @Mike, indeed, this server restart is required.

    It is done in steps 6 and 4 for CentOS and Debian/Ubuntu respectively. 

  • Avatar
    Julian H (Edited )

    is there also a way for ubuntu, when the desired version is not supportet by the os?

    "If a newer version has not been found or after an update the version is still not the latest, perform the following steps:"

       
  • Avatar
    Ivan Postnikov

    Hello @Julian H, please, could you clarify which Ubuntu version do you use and what is the desired package version?

    Generally, for getting an answer to your question quicker, it is better to ask this question to Ubuntu support, as they are experts in their product.

  • Avatar
    Kyle James Gordon (Edited )

    Just tried this on CentOS 6.10. curl -V returned version 7.19

    I followed the instructions above for when it fails to find an update. Seemed to work, I restarted all processes with s erver rooboot but now curl -V and curl --version do nothing. 

     

    curl -V returns: curl: error while loading shared libraries: libnghttp2.so.14: cannot open shared object file: No such file or directory

    rerunning yum update curl.x86_64 returns: 

    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    libnghttp2.so.14: cannot open shared object file: No such file or directory

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.6.6 (r266:84292, Aug 18 2016, 15:13:37)
    [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
    http://yum.baseurl.org/wiki/Faq

     

    I also recieved this notice: The service “cpanel_php_fpm” appears to be down.

     

    What did I do :(

  • Avatar
    Ivan Postnikov

    Hello @Kyle,

    As I can see from the output, Cpanel is used.

    The issue is described here.

    For issues with Cpanel servers, please, contact Cpanel support.

Please sign in to leave a comment.

Have more questions? Submit a request