Skip to content

Exit code 127. env: php: No such file or directory #72

Description

@imagoiq

Hi,

I can't make the plugin work on Intellij. On saving, I'm getting the following message:

Image
$: php -v
$: PHP 8.5.5 (cli) (built: Apr  7 2026 16:24:10) (NTS)
Copyright (c) The PHP Group
Built by Shivam Mathur
Zend Engine v4.5.5, Copyright (c) Zend Technologies
    with Xdebug v3.5.1, Copyright (c) 2002-2026, by Derick Rethans
    with Zend OPcache v8.5.5, Copyright (c), by Zend Technologies
$: which php
$: /usr/local/bin/php

(which I symlinked to the homebrew path).

The PATH includes /usr/local/bin.

The PHP CLI interpreter is linked to "/usr/local/bin/php" and marked as valid in intellij.

I can only select "local" in the mago plugin "Configuration" field. Inside the "Mago path" is valid as well.

What am I missing?

Intellij version: 2026.1.1 on macOS Tahoe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions