Jump to:

4938 Posts in 16827 Topics by 1490 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: 988 Views
  • intel352
    Avatar
    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:
    /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

  • Willr
    Avatar
    Forum Moderator
    5508 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.

    988 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.