我正在使用ubuntu 13.10
安装了xampp并成功运行。路径是
opt/lampp/htdocs/xampp/www
。
我已下载cakephp 2.4.6
并已将tar.gz文件解压缩到我的网络文件夹中
/opt/lampp/htdocs/xampp/www/cakephp
现在我点击
localhost/xampp/www/cakephp
显示
Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /opt/lampp/htdocs/xampp/www/first_app/lib/Cake/Cache/Cache.php on line 325
Warning: /opt/lampp/htdocs/xampp/www/first_app/app/tmp/cache/persistent/ is not writable in /opt/lampp/htdocs/xampp/www/first_app/lib/Cake/Cache/Engine/FileEngine.php on line 384
Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /opt/lampp/htdocs/xampp/www/first_app/lib/Cake/Cache/Cache.php:181 Stack trace: #0 /opt/lampp/htdocs/xampp/www/first_app/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /opt/lampp/htdocs/xampp/www/first_app/app/Config/core.php(373): Cache::config('_cake_core_', Array) #2 /opt/lampp/htdocs/xampp/www/first_app/lib/Cake/Core/Configure.php(72): include('/opt/lampp/htdo...') #3 /opt/lampp/htdocs/xampp/www/first_app/lib/Cake/bootstrap.php(175): Configure::bootstrap(true) #4 /opt/lampp/htdocs/xampp/www/first_app/app/webroot/index.php(90): include('/opt/lampp/htdo...') #5 {main} thrown in /opt/lampp/htdocs/xampp/www/first_app/lib/Cake/Cache/Cache.php on line 181
可能是一些配置更改应该带来成功,PLZ建议
答案 0 :(得分:6)
请使用权限777创建app / tmp / cache目录。