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

Clean Install can't build DB

Go to End

4 Posts   925 Views


Community Member, 545 Posts

17 January 2012 at 5:16pm

Tried to migrate a site and it wasn't working so I decided to rebuild from scratch

The new server is php 5.3 and when I try to do a new clean install of 2.4.6 it gets to Building database schema... and stops, error logs read the following

[Tue Jan 17 00:07:59 2012] [error] [client X] PHP Warning: $project isn't set in /var/www/vhosts/X/httpdocs/sapphire/core/ManifestBuilder.php on line 268, referer:
[Tue Jan 17 00:07:59 2012] [error] [client X] PHP Fatal error: Class 'Page' not found in /var/www/vhosts/X/httpdocs/sapphire/core/model/SiteTree.php on line 1291, referer:

Any help would be appreciated I've been in migration hell for 4 days now :)


Forum Moderator, 5523 Posts

17 January 2012 at 11:13pm

Your mysite/_config.php file should contain a couple lines like

global $project;
$project = "mysite";

In 3.0 this will be not required.


Community Member, 545 Posts

18 January 2012 at 2:05am

Those variables are in the config. Like I said I was trying to do a clean install extracting the SS tar right on the server to make sure no files got missed.

I did manage to migrate a another site to the same server with only minor problems. (I used the <? shortcut in one of my classes so 5.3 didn't recognize it)


Community Member, 545 Posts

9 February 2012 at 3:15am

FYI I just ended up finding an copy of 2.3 on my system, installing that, then upgrading to 2.4