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

Building SilverStripe into PHAR file and running on livesite.


Go to End


1195 Views

Avatar
matlak

Community Member, 4 Posts

9 November 2016 at 1:19am

Hello,

I've tried to do this on my own but with no big success (a lot of classloader and cache issues). I've tried also to find some module or solution here on forum also without luck. Maybe I'm blind or something - nevertheless I need your help :).

How do I build SilverStripe (could be 3.x) into PHAR file when all modules are installed etc and DB had been built already? It's not about obfuscating or anything like that - I'm also Java developer and I really prefer to have everything in one file instead of few thousands. Furthermore it's possible to protect application from various flaws by signing archive etc. It also makes update process much easier.

Probably I've to leave untouched some dirs for example upload dir, log dir and/or cache if needed/relevant. Is there any "best practice" guide out there or working module for example? Any advice?

Thank you very much in advance and sorry for my not-perfect English.