Nextcloud problem application php:166

Hello,

I tried to do the update of nextcloud from version 16.5 to 17.0. and an error appeared,
I had this that appeared, phpCurl was installed but it didn’t detect it, and I had the php:166 error…

I run apache2 client.
Here is what happend :
" www-data php occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
PHP module cURL not installed.
Please ask your server administrator to install the module.

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:166
Stack trace:
#0 /var/www/nextcloud/console.php(96): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /var/www/nextcloud/occ(11): require_once(’/var/www/nextcl…’)"

Thanks for the help.

Ok, I found what was missing, I have multiples version of php and I didn’t precise it. the commande is “php7.2 occ”.