猿问

laravel网站 在新服务器上搭建后出现问题

本地window 可以正常访问网站项目, 但是将网站布置到linux系统上后就不能访问了 ,nginx+php5.6
以下就是出现问题,

Whoops, looks like something went wrong.

1/1
ReflectionException in Container.php line 681:
Class AppHttpControllersIndexController does not exist
in Container.php line 681
at ReflectionClass->__construct('App\Http\Controllers\IndexController') in Container.php line 681
at Container->build('App\Http\Controllers\IndexController') in Container.php line 565
at Container->make('App\Http\Controllers\IndexController') in Application.php line 702
at Application->make('App\Http\Controllers\IndexController') in Route.php line 217
at Route->getController() in Route.php line 726
at Route->controllerMiddleware() in Route.php line 687
at Route->gatherMiddleware() in Router.php line 572
at Router->gatherRouteMiddleware(object(Route)) in Router.php line 552
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 520
at Router->dispatchToRoute(object(Request)) in Router.php line 498
at Router->dispatch(object(Request)) in Kernel.php line 174
at Kernel->IlluminateFoundationHttp{closure}(object(Request)) in Pipeline.php line 30
at Pipeline->IlluminateRouting{closure}(object(Request)) in TransformsRequest.php line 30
at TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php line 148
at Pipeline->IlluminatePipeline{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->IlluminateRouting{closure}(object(Request)) in TransformsRequest.php line 30
at TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php line 148
at Pipeline->IlluminatePipeline{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->IlluminateRouting{closure}(object(Request)) in ValidatePostSize.php line 27
at ValidatePostSize->handle(object(Request), object(Closure)) in Pipeline.php line 148
at Pipeline->IlluminatePipeline{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->IlluminateRouting{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 148
at Pipeline->IlluminatePipeline{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->IlluminateRouting{closure}(object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in Kernel.php line 149
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116
at Kernel->handle(object(Request)) in index.php line 54

aluckdog
浏览 760回答 5
5回答

四季花海

报错是楼上的报错,原因可能是大小写严格导致的。

蝴蝶不菲

AppHttpControllersIndexController 这个不存在

哔哔one

windows 的服务器不是nginx吧? 是不是 rewrite 没写对?

富国沪深

查看一下 AppHttpControllersIndexController 类文件及目录的大小写.

莫回无

检查文件目录,检查namespace,检查大小写。
随时随地看视频慕课网APP
我要回答