The update can be done up to the versions that available in 3rd-party repositories.

Connect to a Plesk server via SSH. Update cURL to the latest version with the command:

yum update curl.x86_64

Or:

yum update libcurl

Verify the version:

curl --version

If you need a higher version you will need to install an additional repository:

Create a city-fan.org yum repository file:

touch /etc/yum.repos.d/city-fan.repo

Open the created file /etc/yum.repos.d/city-fan.repo in any text editor (for example, "vi" editor) and put the content below in it:

[CityFan]  
name=City Fan Repo  
baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/  
enabled=1  
gpgcheck=0

Enable the EPEL repository:

yum install epel-release -y

Rerun the update:

yum install curl libcurl

Verify the version:

curl --version

Restart all cURL dependent services:

service php-fpm restart
service httpd restart
service nginx restart

If you're running Plesk you may also need to restart the following services:

service sw-engine restart
service sw-cp-server restart
service plesk-phpXX-fpm restart (replace XX with version)

This article was last modified: Sept. 25, 2018, 1:03 p.m.

0 Comments

Please log in to leave a comment.

Add or change tags.

A comma-separated list of tags.

Share

Hacker News

Top