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.

Archive /

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

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

v2.2.2 install fails on wampserver: Not passed a valid database config

Go to End

5 Posts   3494 Views


Community Member, 11 Posts

17 October 2008 at 5:57pm

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


Forum Moderator, 5523 Posts

17 October 2008 at 6:34pm

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 - and save then try view your site


Community Member, 11 Posts

19 October 2008 at 5:07pm


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.


Community Member, 11 Posts

19 October 2008 at 6:15pm

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.


Community Member, 11 Posts

20 October 2008 at 4:53am

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:

<IfModule mod_dir.c>
#DirectorySlash Off