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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

_config.php file got deleted now install screen shows up


Reply


754 Views

Avatar
fostahgix

Community Member, 9 Posts

27 March 2009 at 8:58am

Hey all,

I completed my SS site and I was updating the tutorial/_config.php and saved, however it must of failed to save and deleted the file.

tutorial/_config.php was deleted.

I recreated it below, however when i visit domain its hosted on, it keeps going to the install screen now instead of my site. Nothing changed except I moved it from an IP to a domain. Am I missing something?

global $project;
$project = 'tutorial';

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

// 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',
));