I followed this but doesnt work
http://doc.silverstripe.org/framework/en/topics/environment-management
My Structures
4 drwxrwxr-x 5 stefan stefan 4096 Apr 23 15:52 assets
4 drwxrwxr-x 7 stefan stefan 4096 Apr 23 16:18 cache
0 lrwxrwxrwx 1 stefan stefan 9 Apr 23 15:53 cms -> ../../cms
0 lrwxrwxrwx 1 stefan stefan 19 Apr 23 15:53 composer.json -> ../../composer.json
0 lrwxrwxrwx 1 stefan stefan 19 Apr 23 15:53 composer.lock -> ../../composer.lock
0 lrwxrwxrwx 1 stefan stefan 17 Apr 23 15:53 favicon.ico -> ../../favicon.ico
0 lrwxrwxrwx 1 stefan stefan 16 Apr 23 15:53 flexslider -> ../../flexslider
0 lrwxrwxrwx 1 stefan stefan 15 Apr 23 15:53 framework -> ../../framework
0 lrwxrwxrwx 1 stefan stefan 13 Apr 23 15:53 gallery -> ../../gallery
0 lrwxrwxrwx 1 stefan stefan 15 Apr 23 15:53 index.php -> ../../index.php
4 drwxrwxr-x 4 stefan stefan 4096 Apr 23 16:26 mysite
0 lrwxrwxrwx 1 stefan stefan 15 Apr 23 15:53 README.md -> ../../README.md
0 lrwxrwxrwx 1 stefan stefan 11 Apr 23 15:53 sites -> ../../sites
4 -rw-rw-rw- 1 stefan stefan 488 Apr 23 16:18 _ss_environment.php
4 drwxrwxr-x 3 stefan stefan 4096 Apr 23 15:52 themes
0 lrwxrwxrwx 1 stefan stefan 18 Apr 23 15:53 translatable -> ../../translatable
0 lrwxrwxrwx 1 stefan stefan 12 Apr 23 15:53 vendor -> ../../vendor
0 lrwxrwxrwx 1 stefan stefan 16 Apr 23 15:53 web.config -> ../../web.config
stefan@stefanX201 /data/www/silverstripe/sites/test $
my _config.php in mysite folder:
<?php
global $project;
$project = 'mysite';
global $database;
$database = '(databasename)';
// Use _ss_environment.php file for configuration
require_once("conf/ConfigureFromEnv.php");
My _ss_environment.php file
<?php
define('TEMP_FOLDER', __DIR__ . '/cache');
define('SS_DATABASE_NAME', 'silverstripe');
define('SS_DATABASE_SERVER', 'localhost');
define('SS_DATABASE_USERNAME', 'devuser');
define('SS_DATABASE_PASSWORD', 'devuser');
define('SS_DEFAULT_ADMIN_USERNAME', 'admin');
define('SS_DEFAULT_ADMIN_PASSWORD', 'stefan');
define('SS_ERROR_LOG', __DIR__ . '/silverstripe.log');
global $_FILE_TO_URL_MAPPING;
$_FILE_TO_URL_MAPPING['/data/www/silverstripe/sites/test'] = 'http://silverstripe.dev';
I deleted the whole cache with rm -rf ... but still:
SilverStripe Framework requires a $databaseConfig defined.
Please help me