beyondcode / herd-community

91 stars 1 forks source link

[Bug]: fresh Herd Installation fails to correclty install (/Library/Application Support/Herd/bin//herd: line 13: php: command not found Error finding executable PHP. Quitting for safety. Provided output from find-usable-php.php:) #1096

Closed marfrede closed 1 month ago

marfrede commented 1 month ago

Platform

macOS

Operating system version

Sequoia 15.0.1

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.1.11 (and I also tried 1.9.1)

PHP Version

No response

Bug description

After installation of Laravel Herd, I get the following error, when running herd --version:

➜  ~ herd --version
/Users/morv/Library/Application Support/Herd/bin//herd: line 13: php: command not found
Error finding executable PHP. Quitting for safety.
Provided output from find-usable-php.php:

Also when trying to run php:

➜  ~ php --version
zsh: command not found: php

Steps to reproduce

I had a problemn with Laravel Herd after I changed my username on my Mac. So what I did was

Relevant log output

No response

marfrede commented 1 month ago

FYI

Still no solution to install Herd, but no solution needed anymore for me.

mpociot commented 1 month ago

I assume that PHP was still in your PATH for the old username?

You could remove the existing Herd helper service manually and then re-install Herd which triggers the onboarding again: sudo /Library/PrivilegedHelperTools/de.beyondco.herd.helper uninstall

Changing your username sounds like an edge case to me 😬