This summarizes the procedure for updating Drupal from 10.1.5 to 10.6.1 on Sakura Rental Server.

Environment

  • Server: Sakura Rental Server
  • Drupal: 10.1.5 → 10.6.1
  • Installation type: Traditional (tarball, no web/ directory)

Preparation

Creating a Working Directory

Backups are saved outside www (to prevent web access).

mkdir-p/home/[username]/backups/drupal

File Backup

ctdar/h-ocmze/f[u/sheormnea/m[eu]s/ewrwnwame]/backups/drupal/drupal_backup_$(date+%Y%m%d).tar.gz[drupal_directory]/

Database Backup

On Sakura Rental Server, the --no-tablespaces option is required.

cd/ehnodmoer//[buisne/rdnraumseh]/swqwlw-/d[udmrpupa-le_xdtirrae-cdtuomrpy=]"--no-tablespaces">/home/[username]/backups/drupal/db_backup_$(date+%Y%m%d).sql

Drupal Core Update

Changing Permissions

The sites/default directory is often write-protected, so temporarily change it.

cchhmmoodd765454//hhoommee//[[uusseerrnnaammee]]//wwwwww//[[ddrruuppaall__ddiirreeccttoorryy]]//ssiitteess//ddeeffaauulltt/default.services.yml

Updating with Composer

Since the composer command is not available on Sakura Rental Server, use composer.phar.

cpdhp/hcoommep/o[suesre.rpnhaamre]r/ewqwuwi/r[edrdurpuapla_ld/icroercet-orreyc]ommended:^10drupal/core-composer-scaffold:^10-update-with-dependencies

Database Update and Cache Clear

veennddoorr//bbiinn//ddrruusshhucpadcahtee:drbeb-uyild

Restoring Permissions

cchhmmoodd545454//hhoommee//[[uusseerrnnaammee]]//wwwwww//[[ddrruuppaall__ddiirreeccttoorryy]]//ssiitteess//ddeeffaauulltt/settings.php

Troubleshooting

Rules Module Compatibility Error

If the following error appears after updating:

The"entity_bundle:node"plugindoesnotexist.

The Rules module may be incompatible with the new Drupal core. Temporarily disable it:

veennddoorr//bbiinn//ddrruusshhpcma:cuhnei:nrsetbaulilldrules-y

Setting trusted_host_patterns

Add the following to settings.php:

ce\]chc$;hmhs"mooe^^odtewd"txw6iaw44nm44gph4sl./[eem/h'\xehota/omr.m[meujpue/spls/[tee[ue$rusd'nse_,.aerhjmrnopenas\]amt$me_'we]p,w]/aw/wt/wwt[wwedw/rr/[nu[dspdr'aru]lup_pa=dalil_[r_dedicirtreoecrctyto]or/rysy]i]/t/sesisit/tedeses/f/dadeueflfatau/ulsltet/t/stseietnttgtisin.ngpgshs.p.pphhpp

Enabling state_cache

As preparation for Drupal 11, add to settings.php:

ctdar/h-ocmze/f[u/sheormnea/m[eu]s/ewrwnwame]/backups/drupal/drupal_backup_$(date+%Y%m%d).tar.gz[drupal_directory]/

0

Disabling Deprecated Modules

Disable modules scheduled for removal in Drupal 11:

ctdar/h-ocmze/f[u/sheormnea/m[eu]s/ewrwnwame]/backups/drupal/drupal_backup_$(date+%Y%m%d).tar.gz[drupal_directory]/

1

Module Updates

For Composer-managed Drupal, update via Composer rather than from the admin panel.

ctdar/h-ocmze/f[u/sheormnea/m[eu]s/ewrwnwame]/backups/drupal/drupal_backup_$(date+%Y%m%d).tar.gz[drupal_directory]/

2

Note: Drupal Configuration Types

Drupal has two types of configurations.

ConfigurationFeaturesSymlink Separation
Traditional (tarball)index.php at the rootNot effective
Composer recommendedHas web/ directoryEffective

For the traditional type, vendor/ and composer.json become web-accessible, so protection with .htaccess is important.

Summary

  1. Always take backups (files and database)
  2. Update via Composer (not from the admin panel)
  3. Don’t forget temporary permission changes
  4. Run drush updatedb and cache:rebuild
  5. Temporarily disable incompatible modules