Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shuvobhai's avatar

laravel horizon install error

$ composer require laravel/horizon Using version ^4.3 for laravel/horizon ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1 - laravel/horizon v4.3.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system. - laravel/horizon v4.3.2 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system. - laravel/horizon v4.3.1 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system. - laravel/horizon v4.3.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system. - laravel/horizon 4.x-dev requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system. - Installation request for laravel/horizon ^4.3 -> satisfiable by laravel/horizon[4.x-dev, v4.3.0, v4.3.1, v4.3.2, v4.3.3].

To enable extensions, verify that they are enabled in your .ini files: - C:\laragon\bin\php\php-7.2.11-Win32-VC15-x64\php.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

0 likes
9 replies
Tippin's avatar

@shuvobhai You are missing the php extension ext-pcntl. Now this extension is NOT supported on windows directly, but if you have Windows Subsystem for Linux installed, you can indeed install that extension through WSL, then you just have to be sure to use WSL terminal when running composer install. This also means if you use artisan serve locally, you must run it through WSL if you wish to actually run horizon locally.

shuvobhai's avatar

can i use that for prodcution also or not?

jony741's avatar

composer update --ignore-platform-reqs It's working for me

3 likes
TfkSdn's avatar

this works good

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

2 likes
Jim_10's avatar

Doe's this create a problem when running on production? when you ignore platform requirements?

narend23's avatar

Run this command composer require illuminate/contracts --ignore-platform-req=ext-pcntl --ignore-platform-req=ext-posix --ignore-platform-req=ext-pcntl

Please or to participate in this conversation.