symfony2 : failed to write cache directory

后端 未结 10 1709
没有蜡笔的小新
没有蜡笔的小新 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条回答
  •  旧时难觅i
    2020-12-12 12:08

    Most likely it means that the directory and/or sub-directories are not writable. Many forget about sub-directories.

    Symfony 2

    chmod -R 777 app/cache app/logs
    

    Symfony 3 directory structure

    chmod -R 777 var/cache var/logs
    

    Additional Resources

    Permissions solution by Symfony (mentioned previously).

    Permissions solution by KPN University - additionally includes an screen-cast on installation.

    Note: If you're using Symfony 3 directory structure, substitute app/cache and app/logs with var/cache and var/logs.

提交回复
热议问题