How to Update cURL?

sibipaul

Well-Known Member
#1
Hello,

My Server Config is DO + CentOS 7 + LS Ent + Cyber Panel Ent

One of My Web App Shows a Warning in Backend Dashboard.

Code:
You do not have the cURL PHP extension loaded or it is running a version less than 7.36. Enabling the cURL module provides a more efficient and reliable library for making connections from your website to other websites.
When I checked my Sites PHP Info, By Creating a Info.php file

Using this Code
PHP:
<?php phpinfo(); ?>
I came to Understand, My Server Having cURL Version 7.29

and My Web App requires min 7.36

I run this command
Code:
yum update curl
The reply comes as NO Package to Update.

While I was searching online, I found some Links

https://qiita.com/tkprof/items/5460b8d603cbbc542c8c

https://serverfault.com/questions/321321/upgrade-curl-to-latest-on-centos

And, Some Forums says...

IF I Update cURL, I need to change the Library and Compile PHP ( Seems Something Complicated )

So,

I'm a little bit confused about this.

Can you please suggest me a safe method to Update my cURL?

Thanks.
 

sibipaul

Well-Known Member
#3
Now My cURL version is 7.29

if I update, I need to Compile PHP too...?\

It's My Main server. Primary sites are Live.

Can I follow each steps as seen on that Article?

There mentioned PHP 7.3

But mine is 7.4

Can You Please share exact steps to Update cURL in a Safe way

Without Break anything in my server.

Thanks.
 

Pong

Administrator
Staff member
#4
It is always to have a staging server as a good practice. Anyway, the wiki should include all necessary steps , just simple change any lsphp73 or 7.3.x to lsphp74 or 7.4.x.
 

NiteWave

Administrator
#6
have you installed lsphp 7.3 ?
then please follow that wiki witch exact steps, to see how it works with lsphp 7.3
it's pretty safe. in the end, it will update one file
/usr/local/lsws/lsphp73/lib64/php/modules/curl.so
for 100% safe, you can backup this file first. in case new built curl.so has problem, just replace it with the backup one, lsphp73 will continue to work like before.

if you've done it for php 7.3, you'll find it quite easy to apply for 7.4
 

sibipaul

Well-Known Member
#8
have you installed lsphp 7.3 ?
then please follow that wiki witch exact steps, to see how it works with lsphp 7.3
it's pretty safe. in the end, it will update one file
/usr/local/lsws/lsphp73/lib64/php/modules/curl.so
for 100% safe, you can backup this file first. in case new built curl.so has problem, just replace it with the backup one, lsphp73 will continue to work like before.

if you've done it for php 7.3, you'll find it quite easy to apply for 7.4
I feel something complicated in this step.

can you please tell me more easiest way?
 
Top