Drupal 8.4 upgrade to 8.6

紀錄從 Drupal 8.4.8 升級到目前最新的 8.6.16
不升級到 8.7.1 是因為可能還不是很 stable 的關係

請注意:更新前先備份資料夾跟資料庫,如果更新失敗還可以復原

Drupal8 升級 Kernel 的方式好像跟之前不太一樣
主要是透過移除 `/core` 及 '/vendor' 資料夾後
再將新版本的這兩個資料夾上傳
上傳完後執行 `update.php`
執行 `update.php` 需要注意 `/sites/default/files` 的權限問題

另外不建議一直就直接跨越升級 8.4 -> 8.6
建議先升到下個版本的最新版
然後執行上述步驟重傳 `/core` & `/vendor` 及執行 `update.php`

等 Kernel 升級完後
最後再來升級 modules
Drupal8 的 modules 預設在 `/modules/contrib` 裡面
也是將舊版的 module 資料夾刪除後重新上傳
module 都上傳完後再執行 `update.php` 即可


環境:
Drupal 8.4.8
PHP 7.1.27
CentOS 7.5

Comments

Popular posts from this blog

CentOS7 如何新增/移除 Rich Rule for firewalld

mac 安裝 mtr

Howto use Postman test Cors