问题
hey guys i was following the laravel installation guide for cloud9 IDE here and when go run the app i get following in the screen shot below
im still new so my debugging solutions are very limited, does anyone know whats wrong on cloud9 ide?
回答1:
Under the tab called 'PHP - Running' which opens when you click the 'Run Project' button, click on where it says 'Runner: ' (between the green bug icon and 'CWD') and select 'Appache httpd (PHP, HTML)'
After changing that setting I had to log out and back in again to get the project to run, but the problem appeared to be fixed.
回答2:
I was facing same issue while running ZF application. Actually I was executing following command
php -S 127.0.0.1:80 -t /d/MyProjectRootFolder/
Actually I forgot to add public folder path as
php -S 127.0.0.1:80 -t /d/MyProjectRootFolder/public/
This fixed issue for me.
回答3:
I had the same problem.
In my case, I added next line in routes.php Route::resource('image','ImageController');
But, in /public directory, it was /public/image directory.
Solution:
change directory's name for: /public/img
or change routes.php: Route::resource('imageSite','ImageController');
Regards!
来源:https://stackoverflow.com/questions/33861376/the-requested-resource-was-not-found-on-this-server-laravel-on-cloud9-ide