无法运行cakephp 2.4.0 - 尝试完成教程时出现致命错误

时间:2013-09-11 21:03:26

标签: php cakephp cakephp-2.4

我正在尝试按照此处找到的cakephp教程的说明进行操作:http://book.cakephp.org/2.0/en/getting-started.html

我将CakePHP文件上传到我的web服务器,使用MySQL workbench创建了数据库,并创建了database.php并将其更​​新为指向我的MySQL服务器。

此时听起来我应该可以在我的浏览器中打开网站并看到一些内容,但我得到了这些错误(我已经删除了完整路径):

Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /caketut/lib/Cake/Cache/Cache.php on line 325

Warning: caketut/app/tmp/cache/persistent/ is not writable in /www/premium/med/pediatrics/www.hobmt.umn.edu/htdocs/caketut/lib/Cake/Cache/Engine/FileEngine.php on line 380

Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /caketut/lib/Cake/Cache/Cache.php:181
Stack trace:
#0 /caketut/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_')
#1 /caketut/app/Config/core.php(367): Cache::config('_cake_core_', Array)
#2 /caketut/lib/Cake/Core/Configure.php(72): include('/www/premium/me...')
#3 /caketut/lib/Cake/bootstrap.php(177): Configure::bootstrap(true)
#4 /caketut/app/webroot/index.php(92): include('/www/premium/me...')
#5 {main} thrown in /caketut/lib/Cake/Cache/Cache.php on line 181

我尝试将位于/ caketut / lib / Cake和所有子文件夹/文件中的Cache文件夹的权限设置为0776,这将删除除此之外的所有错误:

Fatal error: Class 'Cache' not found in /caketut/app/Config/core.php on line 361

我尝试过搜索,但未能找到解决方案。我真的很感激任何帮助!

1 个答案:

答案 0 :(得分:1)

尝试使用0777权限chmod整个脚本。

sudo chmod -R 0777 caketut