CakePHP 2.0安装错误,如何修复

CakePHP 2.0安装错误,如何修复,php,cakephp,cakephp-2.0,Php,Cakephp,Cakephp 2.0,我试图在我的本地机器(wamp服务器)上安装和配置cakephp 2.0,在我使用cake bake命令并在www文件夹中创建了一个包之后,我试图在本地主机上打开,但它显示了以下错误 ( ! ) Warning: include(Cake\bootstrap.php) [function.include]: failed to open stream: No such file or directory in D:\wamp\www\cakecms\webroot\index.php on li

我试图在我的本地机器(wamp服务器)上安装和配置cakephp 2.0,在我使用cake bake命令并在www文件夹中创建了一个包之后,我试图在本地主机上打开,但它显示了以下错误

( ! ) Warning: include(Cake\bootstrap.php) [function.include]: failed to open stream: No such file or directory in D:\wamp\www\cakecms\webroot\index.php on line 79
Call Stack
#   Time    Memory  Function    Location
1   0.0005  363016  {main}( )   ..\index.php:0
2   0.0011  387992  require( 'D:\wamp\www\cakecms\webroot\index.php' )  ..\index.php:17

( ! ) Warning: include() [function.include]: Failed opening 'Cake\bootstrap.php' for inclusion (include_path='D:\wamp\www\lib;.;C:\php\pear') in D:\wamp\www\cakecms\webroot\index.php on line 79
Call Stack
#   Time    Memory  Function    Location
1   0.0005  363016  {main}( )   ..\index.php:0
2   0.0011  387992  require( 'D:\wamp\www\cakecms\webroot\index.php' )  ..\index.php:17

( ! ) Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your \cake core directory and your \vendors root directory. in D:\wamp\www\cakecms\webroot\index.php on line 88
Call Stack
#   Time    Memory  Function    Location
1   0.0005  363016  {main}( )   ..\index.php:0
2   0.0011  387992  require( 'D:\wamp\www\cakecms\webroot\index.php' )  ..\index.php:17
3   0.0016  388856  trigger_error ( )   ..\index.php:88

有谁能给我一个克服这个错误的方法。

从错误和您所说的内容来看,您可能没有正确安装Cake。这句话就是我所指的:“在我使用蛋糕烘焙命令并在www文件夹中创建了一个包之后,”

要安装试用蛋糕项目,请尝试以下操作:

  • 在Wamp文档根目录中创建一个空目录
  • 将蛋糕分发zip解压缩到该目录中
  • 编辑core.php和database.php以适应
  • 尝试在浏览器中查看目录
  • 现在开始烤蛋糕
  • 再次查看项目

  • 您收到的错误看起来不像是mod rewrite问题。

    您是否检查mod_rewrite rules/.htaccess?非常感谢Andy,这对我很有效。你太棒了,我太高兴了。谢谢:)欢迎来到蛋糕世界。。。你不会因为学习了这个很棒的框架而后悔的谢谢你,是你帮助我进入了蛋糕世界