Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PaulB's avatar
Level 20

php command not found ?

Hi there,

I'm trying a php artisan command in my project folder (the same folder I was using yesterday ;)), and here is the error:

$ php artisan make sh.exe": php: command not found

I updated laravel/homestead, but have still the same failure

$ vagrant box list laravel/homestead (virtualbox, 0.2.7) laravel/homestead (virtualbox, 0.3.3) laravel/homestead (virtualbox, 0.4.0) laravel/homestead (virtualbox, 0.4.1)

What's wrong?

0 likes
3 replies
wheeler's avatar
wheeler
Best Answer
Level 6

well... could be a few of things:

If you are trying to run the command on the VM, did you login to homestead with "homestead ssh"?

Does your host machine have PHP installed and setup in the path?

Are you sure that .exe files even work on Linux? Pretty sure they don't...

1 like
jekinney's avatar

No exe files do not work in Linux or OS X. Priority file of ms.

PaulB's avatar
Level 20

oh, of course vagrant ssh that was it :)

Please or to participate in this conversation.