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, Ed, biapar, Willr, Ingo, swaiba

Need ability to separate out sapphire location

Go to End

2 Posts   1190 Views


Community Member, 1 Post

18 February 2010 at 8:36am

On our server (and I've seen many others like this), we have the following dir structure:
/var/www/lib/ << frameworks go here
/var/www/ << app goes here
/var/www/ << frontend files (simple media files, etc)

While sapphire/silverstripe wants you to install the entire package to:

It should instead at least give the ability to separate out the folder locations.
I've grepped through the code, and there are so many locations hard-coded to expect the sapphire/ path, that it would be an extreme annoyance to replace all occurrences. Yes, it can be done with a mass find/replace (ideally using a constant), but in this day, to essentially attempt to force all files into the document root (when they aren't needed there), is a bit excessive.

I was actually evaluating Sapphire as an alternative to Yii/CakePHP for a large project, but this concern alone is enough to make me stay with Yii and similar alternatives.



Forum Moderator, 5523 Posts

18 February 2010 at 10:01pm

Could you symlink the sapphire, cms directories?. See this ticket for more info -