Horizon: Laravel Horizon with XAMPP

Created on 22 Sep 2017  路  14Comments  路  Source: laravel/horizon

Hi,
I've installed a new Laravel with XAMPP 7.1.9 (PHP 7.1.9) and get following error. 'Could not find package laravel/horizon at any version matching your PHP version 7.0.9.0'

How I can get Laravel Horizion if phpinfo says too that I have PHP Version 7.1.9?

Most helpful comment

you can solve it by using composer with this command
$composer install --ignore-platform-reqs ext-pcntl ext-posix
else
composer install --ignore-platform-reqs

All 14 comments

check the php version of your php-cli .. the one in phpinfo() is the one for php-fpm.

I'm not familiar with XAMPP to give more details, sorry :)

the composer was guilty due to an older version of xampp (windows) but now horizon wants to have something different.

Problem 1
- laravel/horizon v1.0.4 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.2 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.1 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- Installation request for laravel/horizon ^1.0 -> satisfiable by laravel/horizon[v1.0.0, v1.0.1, v1.0.2, v1.0.3, v1.0.4].

Check you PHP-CLI version
captura de pantalla 2017-09-25 a la s 12 13 35

XAMPP its a web server solution stack only... 驴Why not trying Homested or Valet ... or MAMP 4?

pcntl extension is not supported on Windows. (based on your XAMPP information)

131

78

if i understand it right then is horizon not usable on windows? i mean i'm not really interesting to change my whole development environment just for a test of horizon and in case of a good usabilty for me, to expand horizon on different development domains

Okay, the only solution I see with this for now is moving the whole team to Mac or Ubuntu. lol 馃檮

驴Why not trying use php, apache/nginx, MySQL stack (not MAMP/XAMPP)?

If you're developing on windows just use a vm. Laravel Homestead is a simple solution here.

Same issue on Google Cloud VM (Debian 9, PHP-FPM 7.0.19)

you can solve it by using composer with this command
$composer install --ignore-platform-reqs ext-pcntl ext-posix
else
composer install --ignore-platform-reqs

Same issue here on windows.
I don't think that change all my environment because of a php extension is not really a good solution...

Solving for now using the @royalabhi17 solution...

@pedrogaldino @ForzaSFerrari on windows 10 you can try the Ubuntu app from the windows app store.
It will allow you to install horizon and you can run it from there.

I think it's sad that we can't work on Windows with Horizon just because of an extension...
I have worked with Homestead before, but it's 10 times slower than for example XAMPP.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rossuhms picture rossuhms  路  5Comments

vesper8 picture vesper8  路  5Comments

mikeminckler picture mikeminckler  路  3Comments

slavarazum picture slavarazum  路  3Comments

marianvlad picture marianvlad  路  5Comments