如何解释CakePHP堆栈跟踪

时间:2014-04-04 11:03:15

标签: apache cakephp

刚从开发机器上的WAMP移动应用程序到Linux服务器。不使用htaccess文件并在Apache中定义它。该应用程序使用Cake的Auth。最后访问时:

https://www.myserver.com/myapp

然后我收到此错误:

2014-04-04 10:54:00 Error: [NotFoundException] Not Found
Request URL: /myapp/login
Stack Trace:
#0 /srv/www/cakephp-2.3.10/lib/Cake/View/View.php(945): include()
#1 /srv/www/cakephp-2.3.10/lib/Cake/View/View.php(907): View->_evaluate('/srv/www/myapp...', Array)
#2 /srv/www/cakephp-2.3.10/lib/Cake/View/View.php(471): View->_render('/srv/www/myapp...')
#3 /srv/www/cakephp-2.3.10/lib/Cake/Controller/Controller.php(952): View->render(NULL, NULL)
#4 /srv/www/cakephp-2.3.10/lib/Cake/Routing/Dispatcher.php(194): Controller->render()
#5 /srv/www/cakephp-2.3.10/lib/Cake/Routing/Dispatcher.php(162): Dispatcher->_invoke(Object(UsersController), Object(CakeRequest), Object(CakeResponse))
#6 /srv/www/myapp/app/webroot/index.php(110): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#7 {main}

浏览器中的错误是:

Error: The requested address '/myapp/login' was not found on this server.

Apache conf有:

Alias /myapp/srv/www/myapp/app/webroot

<Directory /srv/www/myapp/app/webroot>
Options FollowSymLinks
AllowOverride None
Order Allow,Deny
Allow from All

RewriteEngine On
RewriteBase /myapp
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]

修复:当我将调试更改为1或2时,它可以工作!

0 个答案:

没有答案