Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: Enviroments doenst work

$
0
0

My Dev Machine is a Linuxmint with nginx. I got the same problems with apache in a vagrant Virtual-Machine.

I use the symlinks to reduce code redundancy on my Server. Another Advantage is that it is easier to Maintain.

The Structure should look like below after a little cleanup

4 drwxrwxr-x 5 stefan stefan 4096 Apr 4 11:29 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 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 493 Apr 23 16:33 _ss_environment.php
4 drwxrwxr-x 3 stefan stefan 4096 Apr 3 22:35 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

For Example:
All Core files for every Project should place in /var/www/silverstripe.
Projects should placed in

/var/www/silverstripe/sites/X
/var/www/silverstripe/sites/Y
/var/www/silverstripe/sites/Z

-----------------------------------------------------

Now i revert everything and set it back to the originally setup without _ss_env.. ,without symlinks and delete all the cache but can't get it to run anymore

<?php

global $project;
$project = 'mysite';
 
global $databaseConfig;
$databaseConfig = array(
   "type" => 'MySQLDatabase',
   "server" => 'localhost',
   "username" => 'devuser',
   "password" => 'devuser',
   "database" => '   silverstripe',
   "path" => '',
);

<?php

global $project;
$project = 'mysite';
 
global $databaseConfig;
$databaseConfig = array(
   "type" => 'MySQLDatabase',
   "server" => 'localhost',
   "username" => 'devuser',
   "password" => 'devuser',
   "database" => '   silverstripe',
   "path" => '',
);

Please see attached files for the Error that i can't comprehend


Posted to: Enviroments doenst work | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles