Issues with panel install

I’m having problem with the Panel as well, as it turns out I inserted the code in the config.php as suggested:

<?php

/**
 * The config file is optional. It accepts a return array with config options
 * Note: Never include more than one return statement, all options go within this single return array
 * In this example, we set debugging to true, so that errors are displayed onscreen. 
 * This setting must be set to false in production.
 * All config options: https://getkirby.com/docs/reference/system/options
 */
return [
    'debug' => true,
    'panel' =>[
      'install' => true
    ] 
];
c::set('panel.install', true);

But I’m getting an error :

The panel cannot be installed

The CURL extension is required
Try again

I already have CURL extension installed so what am I missing here?

Any one

Hm, maybe it needs to be enabled as well. What does phpinfo() say?