Skip to content

Support for Laravel Herd PHP-FPM binary naming convention #32

@woerndl

Description

@woerndl

Description
I am using Laravel Herd on macOS. The Symfony CLI correctly detects Herd's PHP CLI binary (e.g., php84), but it fails to detect the corresponding PHP-FPM binary.

It appears the current binary scanner does not recognize this naming pattern, causing symfony server:start to fall back to the PHP CLI server (causing various problems in my case).

Steps to Reproduce

  1. Install Laravel Herd
  2. Run symfony local:php:list

Actual Result
The FPM column is empty for the Herd installation, looking something like:

+---------+-----------+---------+---------+
| Version |    PHP    |   PHP   | Server  |
|         |    CLI    |   FPM   |         |
+---------+-----------+---------+---------+
| 8.4.15  | bin/php84 |         | PHP CLI |
+---------+-----------+---------+---------+

Workaround
Creating a symlink that matches standard naming conventions fixes the detection immediately:

ln -s "/Users/user/Library/Application Support/Herd/bin/php84-fpm" "/Users/user/Library/Application Support/Herd/bin/php-fpm"

Suggestion
Please consider updating the binary discovery logic to include the phpXY-fpm pattern to support Laravel Herd natively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions