How to upgrade curl library in cyber panel?

RUn

$ yum install wget gcc openssl-devel -y
$ wget -cv https://curl.haxx.se/download/curl-7.86.0.tar.gz
$ gunzip -c curl-7.86.0.tar.gz | tar xvf -
$ cd curl-7.86.0
$ ./configure --with-ssl
$ make
$ make install
$ curl --version

Next step is to get the source of php 8.1. I will assume since you have not provided the version you are running and you can access ssh are sudouser or root:

$ wget -cv https://www.php.net/distributions/php-8.1.13.tar.gz
$ tar xzvf php-8.1.13.tar.gz
$ cd php-8.1.13/ext/curl
$ /usr/local/lsws/lsphp81/bin/phpize
$ ./configure --with-php-config=/usr/local/lsws/lsphp81/bin/php-config --with-curl=/usr/bin
$ make
$ make install
$ service lsws reload
1 Like