Jump to:

4938 Posts in 16477 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Fatal Database Error

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: 1908 Views
  • simm
    Avatar
    Community Member
    2 Posts

    Fatal Database Error Link to this post

    What's the deal?

    (See attached image)

    Here's the error:

    Installing SilverStripe...

    I am now running through the installation steps (this should take about 30 seconds)

    If you receive a fatal error, refresh this page to continue the installation
    # Creating 'mysite/_config.php'...
    # Creating C:\HostingSpaces\totailus\motley.totail.us\wwwroot\adminedit/mysite/_config.php
    # Creating '.htaccess' file...
    # Creating C:\HostingSpaces\totailus\motley.totail.us\wwwroot\adminedit/.htaccess
    # Building database schema...

    Warning: $project isn't set in C:\HostingSpaces\totailus\motley.totail.us\wwwroot\adminedit\sapphire\core\ManifestBuilder.php on line 154

    Fatal error: DB::connect: Not passed a valid database config in C:\HostingSpaces\totailus\motley.totail.us\wwwroot\adminedit\sapphire\core\model\DB.php on line 53

    Attached Files
  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Fatal Database Error Link to this post

    You are missing your _config file (which contains the $project / database config). This should have been created when you installed but heres what it should look like - http://doc.silverstripe.com/doku.php?id=recipes:example_config_file

  • simm
    Avatar
    Community Member
    2 Posts

    Re: Fatal Database Error Link to this post

    Hi Will,

    I didn't even install it yet - I got this error when I was trying to install it.

    I can't find the _config file you're referring to.

    Thanks,
    Michael

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