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

Server2Go and Silverstripe 2.4.5 not working on CD


Reply


4 Posts   1075 Views

Avatar
Terminator4

Community Member, 81 Posts

13 July 2011 at 2:16am

Hey guys,
We are trying to get Silverstripe to run off a CD with Server2Go (http://www.server2go-web.de/download/download.html). Thus far we have managed to get it to run off a USB stick with little hassle. However, we haven't managed to get it to run off a CD as it seems that there are Silverstripe caching issues or issues with the Manifest writing to a file.

Would anyone be able assist with this? It seems like some modifications are required to be made to sapphire to get this running in read only mode or to get the files to save in a temporary directory elsewhere.

Please help.

Thanks

Avatar
swaiba

Forum Moderator, 1798 Posts

13 July 2011 at 2:51am

Edited: 13/07/2011 2:51am

what does...

<?php echo sys_get_temp_dir(); ?>

return? can you add a "silverstripe-cache" folder there? if so it'll use that.

Avatar
Terminator4

Community Member, 81 Posts

13 July 2011 at 3:23am

That will unfortunately not work as a CD is read-only. For some reason it seems like there is an issue with the manifest file performing a save. Any ideas?

Avatar
swaiba

Forum Moderator, 1798 Posts

13 July 2011 at 3:33am

right, so I am assuming that returns a folder on the CD... can you not configure the server2go to have a temporary folder on the main machine? (in the environment settings... php.ini) seems strange that you cannot configure a temp folder with write access - you'd need that for sessions I'd imagine...

you could hack the Core (literally!)... sapphire\core\Core.php - getTempFolder