Jump to:

4951 Posts in 14077 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Clean Install can't build DB

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: 539 Views
  • zenmonkey
    Avatar
    Community Member
    527 Posts

    Clean Install can't build DB Link to this post

    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: http://X.com/install.php
    [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: http://X.com/install.php

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

  • Willr
    Avatar
    Forum Moderator
    5483 Posts

    Re: Clean Install can't build DB Link to this post

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

    global $project;
    $project = "mysite";

    In 3.0 this will be not required.

  • zenmonkey
    Avatar
    Community Member
    527 Posts

    Re: Clean Install can't build DB Link to this post

    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)

  • zenmonkey
    Avatar
    Community Member
    527 Posts

    Re: Clean Install can't build DB Link to this post

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

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