doudu9148 2017-03-24 06:31
浏览 4

CakePHP中的权限使用EC2实例

I have new instance in AWS. I have make var/www directory using PuTTy. I have upload all file to var/www/html directory. When i open IP Public Instance in Web Browser there are :

Warning: _cake_core_ cache was unable to write 'cake_dev_id' to File cache in /var/www/html/lib/Cake/Cache/Cache.php on line 322

Warning: /var/www/html/app/tmp/cache/persistent/ is not writable in /var/www/html/lib/Cake/Cache/Engine/FileEngine.php on line 384

Then i changed permission:

sudo chmod -R 777 /var/www/html/lib
sudo chmod -R 777 /var/www/html/app

But when i changed the permission there are an error:

Error: Cannot use 'string' as class name as it is reserved File: /var/www/html/lib/Cake/Utility/String.php Line: 24

  • 写回答

2条回答 默认 最新

  • douzhimei8259 2017-03-24 06:41
    关注

    You need to add permission in your tem and logs folder
    if you don't have those folder you need to create those folder you may use

    cd /var/www/html/app
    mkdir -m 777 tmp
    

    Here is the Official Doc

    评论

报告相同问题?

悬赏问题

  • ¥15 在获取boss直聘的聊天的时候只能获取到前40条聊天数据
  • ¥20 关于URL获取的参数,无法执行二选一查询
  • ¥15 液位控制,当液位超过高限时常开触点59闭合,直到液位低于低限时,断开
  • ¥15 marlin编译错误,如何解决?
  • ¥15 有偿四位数,节约算法和扫描算法
  • ¥15 VUE项目怎么运行,系统打不开
  • ¥50 pointpillars等目标检测算法怎么融合注意力机制
  • ¥20 Vs code Mac系统 PHP Debug调试环境配置
  • ¥60 大一项目课,微信小程序
  • ¥15 求视频摘要youtube和ovp数据集