Go to your drupal root composer require drush/drush See http://docs.drush.org/en/master/install/ for details. Then install drupal launcher -> https://github.com/drush-ops/drush-launcher cd ~ wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.3.1/drush.phar chmod ug+x drush.phar sudo …
Read MoreGo to drupal root, then: 1drush st --show-passwords database In drush 9.7.2 (may also work for other sub-versions of drush 9), the following command should be used: 1drush st DB
Read MoreEmpty the files directory. Replace the settings.php file with a copy of the default.settings.php file. Add write permissions to the settings.php file. Drop all tables in the database. Reinstall the site on http://yoursite.com/core/install.php. Ref http://dribbit.eu/drupal-8/reinstall-drupal-8
Read MoreNOTE: Noticed some memory issue during installation on a VM with 2GB RAM, so if it happens to you, just augment with swap file. 1cd /var/www/sites 2composer create-project drupal-composer/drupal-project:8.x yoursite.example.com --stability dev --no-interaction 3../vendor/bin/drush site-install --site-name="Drupal …
Read MoreNOTE: Per https://www.drupal.org/project/drupal/releases/8.4.0, drupal8.4.x needs drush 8.1.12+ Method works but has theme issue. Better to use composer method instead. cd /var/www/sites/yourdrupal.com/ drush dl drupal-8 mv drupal-8.4.5 docroot composer install composer update composer require drush/drush drush si …
Read MoreFrom Web Browser: generate 'drush uli' Go to /admin/reports/dblog From CLI: 1drush watchdog-show See https://drupal.stackexchange.com/questions/48645/how-to-show-admin-reports-dblog-in-terminal-cli
Read MoreFrom drupal admin UI: Administration > Configuration > Development > Performance But will work only if you have drupal admin login. Otherwise, you need to install drush instead and do the 'drush cc all' from there. Some other options -> …
Read MoreChanging group ownership of the files in "sites/default/files". More details in https://www.drupal.org/docs/7/install/setting-up-the-files-directory
Read More