symfony2 : failed to write cache directory

后端 未结 10 1682
没有蜡笔的小新
没有蜡笔的小新 2020-12-12 11:21

I have had to use the

app/console cache:clear  command

to solve a problem when generating an entity.

I am now unable to load my ho

10条回答
  •  春和景丽
    2020-12-12 12:00

    Just use this acl cmd, next time the files inside var are created it will have the r/w/x permission for www-data user.

    cd var 
    rm -rf *
    cd ..
    setfacl -d -m u:www-data:rwx var
    

    Cmd explanation:

    setfacl -> Set acl command    
    -d -> default behavior    
    -m -> modify 
    u:www-data: -> for user 
    rwx -> adding permissions  
    var -> on the folder
    

提交回复
热议问题