CakePHP 2.0安装错误,我该如何修复它
问题描述:
我尝试在我的本地机器(wamp服务器)上安装和配置cakephp 2.0,在我使用cake bake命令并在www文件夹中创建了一个包之后,我试图打开本地主机但它显示以下错误。CakePHP 2.0安装错误,我该如何修复它
(!) 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。这句话是什么我指的是:“我用的是蛋糕烘焙命令,并创建了万维网文件夹中的包,之后”
要安装试用蛋糕项目试试这个:
- 做一个空目录在你的WAMP文档根
- 提取蛋糕分配压缩到该目录
- 编辑core.php中和database.php中,以适应
- 尝试查看该目录在浏览器
- 现在运行蛋糕烘烤
- 查看项目再次
你要不要像国防部重写问题的错误。
你检查mod_rewrite规则/ .htaccess的? – Mika 2012-04-08 08:36:28