Jump to:

4945 Posts in 17872 Topics by 1494 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Need ability to separate out sapphire location

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: 997 Views
  • intel352
    Community Member
    1 Post

    Need ability to separate out sapphire location Link to this post

    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:

    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.


  • Willr
    Forum Moderator
    5511 Posts

    Re: Need ability to separate out sapphire location Link to this post

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

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.