composer update 8.7.x to 8.8.5 (raw)

composer update drupal/* --with-dependencies --dry-run
drush updb
drush cr

chmod +w web/sites/default
chmod 777 web/sites/default/settings.php
add missing line into settings.php -> $settings["file_temp_path"] = "tmp";
  394  composer update drupal/pathauto --with-dependencies --dry-run
  397  composer outdated drupal/*
composer update drupal/pathauto --with-dependencies (must be at least 1.6)
  399  drush updb
  400  drush cr

WP CLI commands

wp core check-update
wp cache flush
wp plugin list
wp plugin update --all --dry-run
wp plugin update --all
wp core update # https://developer.wordpress.org/cli/commands/core/update/
wp core update-db
wp theme update --all --dry-run
wp theme update --all

wp --info
wp core download
wp plugin install elementor
wp plugin install elementor --activate
wp plugin install duplicator --activate
wp core version


DB EXPORT:

wp db export
wp db export ../db_name.sql

Composer update / prohibits (core + modules) till D8.6.11

composer outdated drupal/*
composer show drupal/*

This manual works till version D8.6.11 (8.6.11 and higher require twig 1.38.2), so need at first update twig to this version with:

composer require 'twig/twig:1.38.2'

Composer prohibits - zobrazí závislosti, kvôli ktorým update zlyhá:

composer prohibits drupal/core:8.6.15

Composer update - update modulov podla composer.json

D7 .htaccess fix

#Options +FollowSymlinks
Options +SymLinksIfOwnerMatch
RewriteRule "/\.|^\.(?!well-known/)" - [F] ## this line should be just in www_root .htaccess. In sites/default/files must be NOT. If yes, there will be problems with generating files.

 

update D8 8.6.3 -> 8.6.13

Updating such old Drupal can be stressing. (one passed, but its not rule - try on sandbox/on your own risk)

At first - update drush to version 9.5.x - composer update drush/drush --with-dependencies --dry-run

Run drush updb && drush cr && drush cron

composer outdated drupal/*

composer update drupal/core webflo/drupal-core-require-dev --with-dependencies --dry-run

composer update drupal/core webflo/drupal-core-require-dev --with-dependencies

Run drush updb && drush cr && drush cron

Composerize Drupal

- update core and modules manually

- backup db & files

- create subdomain + copy there database

- on subdomain create new composer-drupal8 project

- install there all modules with exactly versions as on source web (via composer) (if some cant be installed copy them from source to modules/contrib/

- install drush

- copy missing modules from source, copy settings.php, copy sites/default/files, copy libraries (in webroot)

- change db_connect in settings.php

- try site - probably error -> run: