独自ドメイン配下のサブフォルダのまま実施してみる。フォルダごとバックアップとるのと、buckup_migradeモジュールでデータベースのバックアプを保存
$ cp -R www_cycle_eek8 _bk/
update statusモジュールを入れる https://www.drupal.org/project/upgrade_status/
有効化したら怒られる
External dependencies for Upgrade Status are not available. Composer must be used to download the module with dependencies. See the Upgrade Status project page for instructions.
二つにことが書かれている
サイトのことが書いてあるので、composerがあるかどうかということと勝手に解釈して下記を実施(上のページに記載の通り、あんまり意味わかってない)
$ composer show drupal/core | grep versions $ composer require --dev drupal/core-dev:[copy version above] --update-with-all-dependencies $ composer require drupal/upgrade_status
composer/installers contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins Do you trust “composer/installers” to execute code and wish to enable it now? (writes “allow-plugins” to composer.json) [y,n,d,?]
composer / installersには、現在allow-plugins構成にないComposerプラグインが含まれています。 https://getcomposer.org/allow-pluginsを参照してください 「composer / installers」がコードを実行することを信頼し、今すぐ有効にしたいですか? (composer.jsonに「allow-plugins」を書き込みます)[y、n、d、?]
後3個ほど出るけど、一応全部「d」で。すると、「versions : * 8.9.8」と出た。Drupalのバージョンを調べておくということだったのか、知ってたけど。
[copy version above]はさっきのバージョン番号を入れてみる
drupal/core-composer-scaffold contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins Do you trust "drupal/core-composer-scaffold" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y 有効にしますかと聞いているようなので、あと2つ出たけど、今度は全部「y」で。 ./composer.json has been updated Running composer update drupal/core-dev --with-all-dependencies Loading composer repositories with package information Updating dependencies Lock file operations: 54 installs, 0 updates, 0 removals - Locking behat/mink (v1.9.0) (中略) - Locking webmozart/assert (1.10.0) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 54 installs, 0 updates, 0 removals - Downloading symfony/dom-crawler (v3.4.47) (中略) - Downloading behat/mink-selenium2-driver (v1.5.0) - Downloading fabpot/goutte (v3.2.3) - Downloading behat/mink-goutte-driver (v1.3.0) - Installing symfony/dom-crawler (v3.4.47): Extracting archive - Installing symfony/browser-kit (v3.4.47): Extracting archive (中略) - Installing behat/mink-goutte-driver (v1.3.0): Extracting archive - Installing drupal/core-dev (8.9.8) Cleaning: symfony/dom-crawler (中略) Cleaning: behat/mink-goutte-driver 6 package suggestions were added by new dependencies, use `composer suggest` to see details. Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Generating autoload files Hardening vendor directory with .htaccess and web.config files. 50 packages you are using are looking for funding. Use the `composer fund` command to find out more! Cleaning vendor directory.
Using version ^3.13 for drupal/upgrade_status ./composer.json has been updated Running composer update drupal/upgrade_status Loading composer repositories with package information Updating dependencies Lock file operations: 12 installs, 0 updates, 0 removals - Locking container-interop/container-interop (1.2.0) (中略) - Locking webflo/drupal-finder (1.2.2) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 12 installs, 0 updates, 0 removals - Downloading phpstan/phpstan (1.3.1) (中略) - Downloading drupal/upgrade_status (3.13.0) - Installing webflo/drupal-finder (1.2.2): Extracting archive - Installing phpstan/phpstan (1.3.1): Extracting archive - Installing phpstan/phpstan-deprecation-rules (1.0.0): Extracting archive - Installing nikic/php-parser (v4.13.2): Extracting archive - Installing nette/utils (v3.2.6): Extracting archive - Installing nette/finder (v2.5.3): Extracting archive - Installing mglaman/phpstan-drupal (1.1.5): Extracting archive - Installing container-interop/container-interop (1.2.0): Extracting archive - Installing laminas/laminas-servicemanager (3.10.0): Extracting archive - Installing laminas/laminas-text (2.8.1): Extracting archive - Installing mathieuviossat/arraytotexttable (v1.0.8): Extracting archive - Installing drupal/upgrade_status (3.13.0): Extracting archive 3 package suggestions were added by new dependencies, use `composer suggest` to see details. Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead. Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Generating autoload files Hardening vendor directory with .htaccess and web.config files. 54 packages you are using are looking for funding. Use the `composer fund` command to find out more! Cleaning vendor directory.
うまくいってるようだ。サイトに戻り、upgarde_statusモジュールをチェックし有効化する。お、今度は成功(怒られない)したようだ。もージュールの説明文をクリックすると開くので、そこの「構成」をクリック
$ drush status [warning] Drush command terminated abnormally. $ drush --version Drush Commandline Tool 10.3.2-dev