17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2504 Views |
-
v2.2.2 install fails on wampserver: Not passed a valid database config

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 154Fatal error: DB::connect: Not passed a valid database config in C:\wamp\www\silverstripe\sapphire\core\model\DB.php on line 53
-
Re: v2.2.2 install fails on wampserver: Not passed a valid database config

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 - http://doc.silverstripe.com/doku.php?id=recipes:example_config_file and save then try view your site
-
Re: v2.2.2 install fails on wampserver: Not passed a valid database config

19 October 2008 at 5:07pm
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.
-
Re: v2.2.2 install fails on wampserver: Not passed a valid database config

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.
-
Re: v2.2.2 install fails on wampserver: Not passed a valid database config

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:
### SILVERSTRIPE START ###
<IfModule mod_dir.c>
#DirectorySlash Off
#...snipped
| 2504 Views | ||
|
Page:
1
|
Go to Top |


