Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe

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

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

Multiple installs conflicting because of silverstripe-cache


5 Posts   487 Views


16 May 2013 at 2:47am (Last edited: 17 May 2013 4:08am), Community Member, 31 Posts

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.


17 May 2013 at 7:56pm Forum Moderator, 5511 Posts

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


17 May 2013 at 8:26pm Community Member, 31 Posts

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.


17 May 2013 at 9:03pm Forum Moderator, 5511 Posts

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


17 May 2013 at 9:04pm Community Member, 31 Posts

Excellent, thanks :)