Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Jenny Swift
Jenny Swift
21,999 Points

No input file specified (Laravel production site)

Hi, I know there are already posts here about 'No input file specified', and it's even in the top 5 questions asked by students taking Laravel Basics.

But they refer to the Homestead.yaml file, and if I understand correctly, that has nothing to do with the production site. And I am getting the error on my production site, not on my local site.

So, in other words, I go to my production site, and my application is not there. All that is there is 'No input file specified.'

How do I fix this, please?

By the way, in case the issue is related, if I enter my IP address as the URL, I get a 404 not found error.

Jenny Swift
Jenny Swift
21,999 Points

I see now Firebug is giving me a 404 error. So I suppose the other issue I mentioned probably is related.

1 Answer

Jenny Swift
Jenny Swift
21,999 Points

So it's working now.

The funny thing is I'm not sure what I did to get it to work. I asked Forged support about my 'No input file specified' error and received the following response:

'That typically means the public directory when the site was created does not match the location of the index.php file.'

So I fiddled around, deleting my site from Forge and adding it again with different paths. Eventually my site displayed properly when I thought I had the same setup I had before!

I still get the 404 error though when I enter my IP address as the URL.