Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Which php is not able to get php details even if we update the bash_profile #1240

Open
Masumrahmanhasan opened this issue Jan 16, 2025 · 0 comments
Labels

Comments

@Masumrahmanhasan
Copy link

Platform

Windows

Operating system version

Windows 11 Pro

System architecture

Windows

Herd Version

1.14.0

PHP Version

PHP 8.4.2 (cli) (built: Dec 17 2024 17:28:28) (NTS Visual C++ 2022 x64)

Bug description

After installing herd i have linked the project directory and installed a fresh laravel project
as i tried to install a package which needs the php configuration it throws an error /usr/bin/env: ‘php’: No such file or directory
so when i check it in git bash with which php`` i got which php
which: no php in (/c/Users/Masum Rahman Hasan/bin:/mingw64/bin:/usr/local/bsr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/Masum Rahman Hasan/bin:/c/WINDOWtem32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerSv1.0:/c/WINDOWS/System32/OpenSSH:/c/Users/Masum Rahman Hasan/.config/herd/bm:/c/Program Files/nodejs:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System3m:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/WINDOWS/System32/OpenSSH:/c/Program Files/Cloudflare/Cloudflare WARP:/c/Users/Masum Rahman Hasan/.confrd/bin:/c/Users/Masum Rahman Hasan/scoop/shims:/c/Users/Masum Rahman Hasan/ta/Local/Microsoft/WindowsApps:/c/Program Files/JetBrains/PhpStorm 2024.1.4/c/Users/Masum Rahman Hasan/AppData/Local/Microsoft/WindowsApps:/usr/bin/veperl:/usr/bin/core_perl)

so i tried to update the bash_profile but when i checked bash_profile the commands were already there but still the which php is not updating 
i removed all of this and restarted my computer and installed again 
but the problems remains same


### Steps to reproduce

Just install fresh laravel herd before remove all of php versions and stuff and after that install another php version and set it as default and check in git bash with ```which php```

### Relevant log output

```shell

@issuelabeler issuelabeler bot added the windows label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant