Jump to:

557 Posts in 3305 Topics by 244 members

Hosting Requirements

SilverStripe Forums » Hosting Requirements » Change cache directory dir/file permissions

What you need to consider when choosing a hosting provider and plan.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 374 Views
  • lweijl
    Avatar
    Community Member
    2 Posts

    Change cache directory dir/file permissions Link to this post

    Hi there,

    I use SS 3.1.2 with pleasure for some time now. I started using it with a couple of clients and integrated it with my continuous integration server.
    Now I am running into a problem that I cannot seem to figure out. Well I know what the problem is, but I'm not sure if there is a configuration part that fixes it.

    When I deploy a new version (an updated theme most of the time) of SS, I want to clear the cache directory. The problem is the files inside cache directory are inserted by the www-data user and the permissions are set to 0755 with the www-data user and group. This makes it impossible for the continuous integration user to delete those files.

    The cache directory itself has the following persmissions: ciuser:www-data with chmod 0775. The files inside have the permission: www-data:www-data with chmod 0755.

    Is there a configuration directive where I can specify what the user/group will be for the files inside the cache directory? Or at least where I can set the permissions for the files inside the cache directory?

    Thanks in advance for the help provided.

  • lweijl
    Avatar
    Community Member
    2 Posts

    Re: Change cache directory dir/file permissions Link to this post

    Never mind. Have to read the documentation somewhat better.

    http://doc.silverstripe.org/framework/en/topics/commandline

    374 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.