Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » v2.2.2 install fails on wampserver: Not passed a valid database config

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 2764 Views
  • kkruecke
    Avatar
    Community Member
    11 Posts

    v2.2.2 install fails on wampserver: Not passed a valid database config Link to this post

    I created the database and did the pre-check, but when I went to install I got...
    ------------------------------------------------
    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:\wamp\www\silverstripe/mysite/_config.php
    Creating '.htaccess' file...
    Creating C:\wamp\www\silverstripe/.htaccess
    Building database schema...
    Warning: $project isn't set in C:\wamp\www\silverstripe\sapphire\core\ManifestBuilder.php on line 154

    Fatal error: DB::connect: Not passed a valid database config in C:\wamp\www\silverstripe\sapphire\core\model\DB.php on line 53

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: v2.2.2 install fails on wampserver: Not passed a valid database config Link to this post

    open my mysite/_config.php and see if a) there is any contents and b) if the global $project is set. I suspect that the _config file hasnt been written correctly so you might want to do it by hand, if you dont see anything in the _config file then thats the problem so paste this outline in - http://doc.silverstripe.com/doku.php?id=recipes:example_config_file and save then try view your site

  • kkruecke
    Avatar
    Community Member
    11 Posts

    Re: v2.2.2 install fails on wampserver: Not passed a valid database config Link to this post

    Willr,

    First of all, thank you for replying. For some reason I didn't get email notification of your response although I subscribed (I thought) to the thread.

    I finally got the installation under wampserver working by enabling write permissions in Windows Vista for Everyone on the folder c:\wamp\www.

    I am really looking forward to using and learning SilverStripe now that I know it is a php 5-based cms framework.

    Thanks again.

  • kkruecke
    Avatar
    Community Member
    11 Posts

    Re: v2.2.2 install fails on wampserver: Not passed a valid database config Link to this post

    One wampserver peculiarity is this. Once I had successfully SS, I went to http://localhost, which displays the defalut wampserver page and I clicked on the silverstripe (under Your Projects). I got a "HTTP 403 Forbidden". The page it tried to go to was: http://localhost/silverstripe

    If I enter http://localhost/silverstripe/ (note the final '/'), then I successfully get the silverstripe home page.

  • kkruecke
    Avatar
    Community Member
    11 Posts

    Re: v2.2.2 install fails on wampserver: Not passed a valid database config Link to this post

    I got rid of the problem (of not being able to start silverstrip from the Wampserver start page) by editing .htaccess and commenting out "DirectorySlash Off", like this:

    ### SILVERSTRIPE START ###
    <IfModule mod_dir.c>
    #DirectorySlash Off
    #...snipped

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