I have installed php 8.2 in cyberpanel (I use ubuntu 20.04), but "CURL" extension doesn't work

I have installed php 8.2 in cyberpanel (I use ubuntu 20.04), but “CURL” extension doesn’t work.
The php8.2 “CURL” extension is not working. In cyberpanel php8.2 is not shown, that’s why I don’t have the option to install extensions for php 8.2. Attached warning message: “PHP Warning: Module “curl” is already loaded in Unknown on line 0”

Cyberpanel supports CURL extension for PHP8.2 ?

How can I install and activate “CURL” extension in php8.2 for my websites in cyberpanel?

2 Likes

For me it was easy to solve, I just needed to run:

apt install lsphp82-curl -y
killall lsphp

Important:
To execute/run a specific version of PHP I use the full path instead of just "php ".

#not this one:
php artisan serve

#this is good:
/usr/local/lsws/lsphp82/bin/php artisan serve