Ocasional error warning when CakePHP is writing to the cache

前端 未结 4 1303
野的像风
野的像风 2021-01-05 12:42

I\'m developing a CakePHP 2.2 site locally with MAMP. Every so often, I get one or more warnings similar to this, about not being able to write to one or more cache files:

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-05 13:07

    Simple really, assuming and you are a sudoer and your user name is martinlutherking

    sudo adduser martinlutherking www-data
    

    This way cake console commands can read cache files created by apache2, however you may need to do the inverse group add to ensure that www-data can read cache files created by martinlutherking

提交回复
热议问题