Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295594

Installing Drupal 8 on a Win/Linux dual boot system

$
0
0

I have a dual boot Linux/Windows system. The dev partition for Drupal code is NTFS. This allows switching between windows and linux using the same partition. I also make use of multi-site configuration for concurrent testing of different versions (6, 7 & 8) of modules. This has all worked rather in the past.

After the latest fetch of 8.x, things blowed up, blowed up real good. I could install with windows or with linux but certainly not one after the other. Sometimes only the 6 cache_ tables made it into the 2nd install. The first install, which worked fine before the second install was attempted, was totally bunged up after the second install. There were very strange errors reported. Tables appear to have been dropped in the first install. "/user/1#" became the front page. Some very weird behavior and many WTF moments.

I went through a few install cycles. Drop, create and install. Watch things blow up again. Look for clues. Rinse and repeat.

The problem was with the settings.php file. I now have the dual boot working after creating a custom settings.php file from the two settings.php files generated separately with each install. The custom settings.php file now has the following custom code, parts clipped from each settings.php file that was generated.

$osid = php_uname();
$winos = strtoupper(substr($osid, 0, 3)) === 'WIN' ? true : false;
if ($winos) {
  $drupal_hash_salt = '-2vEfQYvtt4aaoorErwBB9ENQETmoYEl4VD1Q12uDAA';
} else {
  $drupal_hash_salt = 'hNwaPD25hBkJHESHsQSrirYB8U0AQ4hf5ZNUVkvfCmQ';
}

and

if ($winos) {
  $config_directories['active']['path'] = 'config_5-de288roddWvnQakZvrrqUXTpAECsK9SNztwbQn2ig/active';
  $config_directories['staging']['path'] = 'config_5-de288roddWvnQakZvrrqUXTpAECsK9SNztwbQn2ig/staging';
} else {
  $config_directories['active']['path'] = 'config_R4SYdWyVFOWmAu6H6Le0miTI4fAHvKm9gGZJeZcO0i8/active';
  $config_directories['staging']['path'] = 'config_R4SYdWyVFOWmAu6H6Le0miTI4fAHvKm9gGZJeZcO0i8/staging';
}

I'll confess to not knowing a great deal about the latest in D8 configuring and there is probably a better way. But these $config_directories that appear here are a bit of a surprise. I'll wager they will appear in issues other than this one.

Any insight that others might have about this would be appreciated.


Viewing all articles
Browse latest Browse all 295594


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>