Jump to:

4970 Posts in 13728 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » tmp directory not writable?

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 2619 Views
  • arthurdent
    Avatar
    Community Member
    147 Posts

    tmp directory not writable? Link to this post

    Hi all. Just attempting my third SilverStripe install on a server (yes, I'm a newb). Have not had any problems before but now I'm getting the following:

    User 't1trigirl' needs to be able to write to this file:/var/tmp//silverstripe-cache

    The file is currently owned by 'jcaseley'. There is no user-group that contains both the web-server user and the owner of this file. Change the ownership of the file, create a new group, or temporarily make the file writeable by everyone during the install process.

    Can anybody tell me where /var/tmp//silverstripe-cache would be? And who is this 'jcaseley' anyway?

    Attached Files
  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: tmp directory not writable? Link to this post

    unix file permissions yay

    I can only assume t1trigirl & jcaseley are users on your unix box... but I'd recomend you create a 'silverstripe-cache' folder in your webroot - silverstripe will then use that instead of '/var/tmp//silverstripe-cache'.

    Also there are setfacl, chown and chmod commands to look into to change permissions to folders it this continues.

  • arthurdent
    Avatar
    Community Member
    147 Posts

    Re: tmp directory not writable? Link to this post

    t1trigirl is a legitimate user, no idea who jcaseley is!

    Tried creating a folder called silverstripe-cache inside the tmp folder on the root directory to no avail. Thanks for your idea though -- I'll give it a try! Have already looked a chown/chmod... but when you can't find the correct directory it has no effect!

    Hey what do you know? It worked!! Cool!!

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: tmp directory not writable? Link to this post

    Tried creating a folder called silverstripe-cache inside the tmp folder on the root directory to no avail. Thanks for your idea though -- I'll give it a try

    I think you misread swaiba's post. Try create one in your SilverStripe root (same level as cms, sapphire etc). Normally you have full permissions to your site directory and not to tmp. After adding that, run a ?flush=1

  • arthurdent
    Avatar
    Community Member
    147 Posts

    Re: tmp directory not writable? Link to this post

    Thanks for your comment Willr. That was what I did and now everything's up and running. I am puzzled as to why it happened, however? I have done other SS installations to server without this problem.

    The first solution was suggested by my web hosting company and no, it didn't work!

    Great forum and great support!

    2619 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.