Jump to:

4952 Posts in 14417 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Multiple installs conflicting because of silverstripe-cache

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: 400 Views
  • Spaghetti
    Avatar
    Community Member
    31 Posts

    Multiple installs conflicting because of silverstripe-cache Link to this post

    I have a VPS with two vhosts and silverstripe 3 installed on one of them. I want to install silverstripe 3 on the other vhost too. Unfortunately the second site's install screen is telling me I can't install because it can't write to /tmp/silverstripe-cache.

    It seems that the first install wrote the cache in /tmp/silverstripe-cache (i.e. literally the tmp directory under root and not under it's web area /var/,...../some domain/httpdocs/tmp/silverstripe-cache.

    This is a problem because the second installation is blocked because of it.

    So my question is this:

    1. How can I change the location of the cache in an already installed and working sivlerstripe system.
    2. How can I specify the location of the new cache?

    i.e. I want each install's cache to be under it's web root and not the server root. Any ideas?

    EDIT: or is it safe for both installations to use the same cache folder - assuming I can set the privileges properly?

    2nd EDIT: I'm assuming it's safe. No problems so far.

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Multiple installs conflicting because of silverstripe-cache Link to this post

    Create a silverstripe-cache folder in each of your SilverStripe sites root folders. That will save you from writing to your /tmp/ folder.

  • Spaghetti
    Avatar
    Community Member
    31 Posts

    Re: Multiple installs conflicting because of silverstripe-cache Link to this post

    Thanks Willr, can you do this retro-actively and still have it work? I really don't want to have to reinstall on live sites.

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Multiple installs conflicting because of silverstripe-cache Link to this post

    Yes, you can do this whenever you want. All you need to do after creating a new cache folder is run a dev/build?flush=all

  • Spaghetti
    Avatar
    Community Member
    31 Posts
    400 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.