The requested resource / was not found on this server. Laravel on Cloud9 IDE

随声附和 提交于 2019-12-11 00:03:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!