How to Fix "No input file specified" in Laravel

by Radu

While working with Laravel, you might get an error saying:

No input file specified.

This only happened to me when I created a Laravel project before adding the proper data in the Homestead.yaml and hosts files.

Those files need editing if you’re using the Homestead environment.

The Fix

Luckily, there’s a simple fix for the “No input file specified” error.

All you have to do is to run vagrant provision in your terminal.

Make sure you have /homestead selected for this. Also, make sure that you properly edited the necessary files before running this.

Basically, vagrant provision will reload your projects, picking up any changes that might have occurred after Laravel was installed.

Running vagrant provision might work for other errors as well.

For example, sometimes I didn’t get the “No input file specified” error, but a “404 Page Not Found” error.

That’s a Wrap

I hope this solution worked for you.

If some info is outdated or incorrect, or you have anything to add, say or ask, please contact me via Twitter or email.

About Radu

I've been working online, from home, for over 9 years. I learned a lot of different stuff related to websites. My main expertise was WordPress, but for some time, we parted ways, and I started focusing more on web development.