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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1392 Views

Avatar
intel352

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/domain.com/private/ << app goes here
/var/www/domain.com/public/ << frontend files (simple media files, etc)

While sapphire/silverstripe wants you to install the entire package to:
/var/www/domain.com/public/

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.

Thanks

Avatar
Willr

Forum Moderator, 5523 Posts

18 February 2010 at 10:01pm

Could you symlink the sapphire, cms directories?. See this ticket for more info - http://open.silverstripe.org/ticket/4998.