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

moving sapphire and linking to it


Go to End


2 Posts   913 Views

Avatar
wildflower1975

Community Member, 63 Posts

23 June 2011 at 4:18pm

I've managed to install 2.4.5 (successfully) into a web directory
/var/www/chd

but I want to move the SilverStripe files to a shared application directory.

After I've moved and linked the directories like so

/var/www/chd$ ls -l
total 24
drwxrwsr-x 3 www-data adm 4096 2011-06-23 15:55 assets
lrwxrwxrwx 1 root     adm   40 2011-06-23 16:10 cms -> /usr/local/apps/SilverStripe-v2.4.5/cms/
-rwxrwxr-x 1 www-data adm  318 2007-09-24 11:34 favicon.ico
lrwxrwxrwx 1 root     adm   51 2011-06-23 16:08 googlesitemaps -> /usr/local/apps/SilverStripe-v2.4.5/googlesitemaps/
-rwxrwxr-x 1 www-data adm 2330 2010-02-03 15:57 index.php
drwxrwsr-x 4 www-data adm 4096 2011-02-02 11:57 mysite
-rwxrwxr-x 1 www-data adm 1431 2010-10-02 18:31 phpunit.xml.dist
lrwxrwxrwx 1 root     adm   45 2011-06-23 16:09 sapphire -> /usr/local/apps/SilverStripe-v2.4.5/sapphire/
lrwxrwxrwx 1 www-data    adm   43 2011-06-23 16:06 themes -> /usr/local/apps/SilverStripe-v2.4.5/themes/
-rwxrwxr-x 1 www-data adm  112 2010-03-06 10:26 web.config

I get

Warning: $project isn't set in /usr/local/apps/SilverStripe-v2.4.5/sapphire/core/ManifestBuilder.php on line 269

Shouldn't this be read from the _config.php in the /var/www/chd/mysite directory as before I moved the sapphire dir?

Avatar
Willr

Forum Moderator, 5523 Posts

25 June 2011 at 5:06pm

It's likely that by moving the folder SS perhaps sets the base include path for the manifest to your usr/local folder. You may want to debug through the core.php / look at the manifest file and determine what that include paths look like. That is the only thing I can think of off the top of my head.