【问题标题】:CakePHP 2.0 Installation Error, How can I fix itCakePHP 2.0 安装错误,我该如何解决
【发布时间】:2012-04-08 08:03:28
【问题描述】:

我尝试在本地机器(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

谁能给我一个想法来克服这个错误。

【问题讨论】:

  • 你检查 mod_rewrite 规则/.htaccess 的吗?

标签: php cakephp cakephp-2.0


【解决方案1】:

从错误和你所说的听起来你可能没有正确安装 Cake。这句话就是我所指的:“在我使用 cake bake 命令并在 www 文件夹中创建了一个包之后,”

要安装试用版 Cake 项目,试试这个:

  1. 在您的 Wamp 文档根目录中创建一个空目录
  2. 将 Cake 分发包解压到该目录中
  3. 编辑 core.php 和 database.php 以适应
  4. 尝试在浏览器中查看目录
  5. 现在运行 Cake Bake
  6. 再次查看项目

您遇到的错误看起来不像是 mod 重写问题。

【讨论】:

  • 非常感谢安迪,它对我有用。你太棒了,我很高兴。
  • 谢谢 :) 欢迎来到 Cake 世界...你不会为学习这个很棒的框架而感到遗憾
  • 谢谢你,是你帮助我进入了蛋糕世界
猜你喜欢
  • 2021-12-13
  • 2018-12-25
  • 2018-09-28
  • 2017-06-14
  • 2020-02-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-12-01
相关资源
最近更新 更多