How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?



PHP Snippet 1:

composer install --ignore-platform-reqs

PHP Snippet 2:

"config": {
  "platform": {
    "ext-pcntl": "8.0",
    "ext-posix": "8.0"
  }
}

PHP Snippet 3:

composer require laravel/horizon --ignore-platform-reqs

PHP Snippet 4:

php artisan horizon:install

PHP Snippet 5:

docker-php-ext-install pcntl

PHP Snippet 6:

?> php -i | grep pcntl
/usr/local/etc/php/conf.d/docker-php-ext-pcntl.ini,
pcntl
pcntl support => enabled

PHP Snippet 7:

composer require laravel/horizon --ignore-platform-reqs

PHP Snippet 8:

sudo apt install php7.2-fpm php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-cli php7.2-zip php7.2-mysql

PHP Snippet 9:

$composer install --ignore-platform-reqs ext-pcntl

PHP Snippet 10:

sudo add php8-pcntl php8-pcntl

PHP Snippet 11:

sudo yum install -y php-pcntl php-posix