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

cyayung's avatar

vagrant ssh php artisan serve not working but works outside. Why?

Hi I am trying to run php artisan serve inside vagrant ssh and it shows "No input file specified."

I tried running php artisan serve within my codes folder it works fine. Is there anything I am missing? Thank you.

0 likes
1 reply
ejdelmonico's avatar

That is because your cloned Homestead repo is not in the VM so there is no serve command. serve is an alias in Homestead repo for serve-laravel, which is a function method for serving Laravel applications. Look at /aliases on your system and in the Homestead cloned repo.

You would need to run that command from outside the VM and on the system with the homestead repo.

1 like

Please or to participate in this conversation.