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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

IIS Install woes


Go to End


2 Posts   3011 Views

Avatar
Yellow7 Jon

Community Member, 39 Posts

8 August 2009 at 4:33am

Edited: 08/08/2009 7:55am

I've followed the install instructions, It not on a local server so I don't have too much control over it.

I get to the install part, and get this error while its trying to install.

heres the page output if that helps...

# Creating 'mysite/_config.php'...
# Creating D:\Domains\mhsrv.test\wwwroot\mysite/_config.php
# Creating '.htaccess' file...
# Creating D:\Domains\mhsrv.test\wwwroot\.htaccess
# Building database schema...

[User Error] DB::connect: Not passed a valid database config POST /install.php
Line 71 in D:\Domains\mhsrv.test\wwwroot\sapphire\core\model\DB.php

Trace

* DB::connect: Not passed a valid database config Line 71 of DB.php
* DB::connect(Array) Line 786 of install.php
* Installer->install(Array) Line 123 of install.php

After some research, I found this article which got me all sorted ( goto the bootnote at the bottom )

http://cubiksoundz.blogspot.com/2008/12/tech-note-installing-silverstripe-cms.html

contacted the host and got the privileges

Avatar
stooni

Community Member, 89 Posts

17 August 2009 at 12:10am

Create manually a _config.php file and upload with ftp to mysite folder with all data in it, database connect .

<?php

global $project;
$project = 'mysite';

global $databaseConfig;
$databaseConfig = array(
"type" => "MySQLDatabase",
"server" => "localhost",
"username" => "username",
"password" => "password",
"database" => "DatabaseName",
);

// Sites running on the following servers will be
// run in development mode. See
// http://doc.silverstripe.com/doku.php?id=devmode
// for a description of what dev mode does.
Director::set_dev_servers(array(
'localhost',
'127.0.0.1',
));
// Enable Translations
i18n::set_locale('de_DE');
setlocale (LC_ALL, 'de_DE');

// This line set's the current theme. More themes can be
// downloaded from http://www.silverstripe.com/themes/
SSViewer::set_theme('blackcandy');

?>

And you have see these?

http://doc.silverstripe.org/doku.php?id=installation-on-windows-manual-iis

----Stooni