Module 4: From the 4.x line
Sites that still run a 4.x release of the old legacy kernel on PHP 5 move to Exponential 6 in place: nothing is exported and imported, the database is brought forward, and the code is ported. This module follows chapter 14 of the installation book in the order a real project works through it.
At a glance
| Course | Migrating to Exponential |
| Duration | 3 hours 30 minutes |
| Lessons | 4 |
| Level | Advanced |
Lessons
| Lesson | Duration | What learners do |
|---|---|---|
| 4.1 Taking stock of an old 4.x site | 45 minutes | Read versions, sizes and settings; run the file consistency check; write a stock-taking sheet |
| 4.2 The database runbook: preflight, phase A and phase B | 60 minutes | Check the update files; run the preflight queries; write the runbook for a 4.3 site |
| 4.3 Files, settings, designs and porting extensions to PHP 8 | 60 minutes | Lint and load an extension's classes; port PHP 5 code or review old settings |
| 4.4 Verifying the migrated site | 45 minutes | Run the read-only checks of chapter 14.12; match common issues to their fixes |
Preparing this module
- To do: One training installation per learner with shell access and an administrator account;
sqlite3installed. - To do: Each learner noted the counts of lesson 4.1; they are compared in lesson 4.4.
- To do: Chapter 14 of the installation book read once in full by the trainer; it is long, and learners will ask about their own starting version.
- To do: If you can, an old demo database (without personal data) restored on a separate machine to show a real
ezsite_dataversion row of an old release; otherwise teach with the training installation as described. - To do: Split the room for lesson 4.3: developers port code, administrators review settings.
Timing plan
| Block | Minutes |
|---|---|
| Lesson 4.1 | 45 |
| Lesson 4.2 | 60 |
| Break | 15 |
| Lesson 4.3 | 60 |
| Lesson 4.4 | 45 |
| Total | 225 (3 hours 30 minutes of lessons, plus a 15-minute break) |
Related pages
- Migrating to Exponential: course overview
- Chapter 14: Migrating from the 4.x line: the chapter this module teaches from.
- Older releases of this kernel: which chapter fits which release.
- Trainers: start here
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.