PHP and database upgrades
This page is for in-house IT teams and service owners who must keep PHP and the database server supported, often on a schedule set by the operating system or the cloud provider. The hosting runbook PHP upgrade has the technical steps; this page adds order and coordination.
Contents
- What is supported
- The order of upgrades
- Preparing with the deprecations log
- Database server upgrades
- Coordination
- Related pages
What is supported
| Component | Support | Source |
|---|---|---|
| PHP 8.0 | the oldest supported; Velocity runs on it from its release 0.0.4.54 | Requirements |
| PHP 8.1 to 8.5 | supported, Velocity included | the same |
| PHP 7.4 | usable without support from 6.0.15 (6.0.8 to 6.0.14 need PHP 8.1) | Upgrading, Part B |
| Databases | SQLite 3, PostgreSQL, MongoDB, MariaDB, Oracle, MySQL, with practical minimums | Databases in the official order |
The order of upgrades
- Update Exponential to the newest 6.0.x first, so fixes for newer PHP versions are in place.
- Upgrade PHP on staging; install the PHP extensions the site needs
(
./console exp:velocity ext check --allow-root-userlists what is missing and prints the install command). - Test on staging (Staging and approval).
- Upgrade production in a window; reload the PHP-FPM that serves the site (the service may not be named
php-fpmon servers with several PHP versions;exp:velocity deployfinds it with[DeploySettings] PhpFpmService=auto) or restart Velocity. - Never upgrade PHP, the database server and Exponential in the same window: one change at a time keeps the cause of a problem obvious.
Preparing with the deprecations log
PHP 8 reports deprecations for code a later PHP version will refuse. Exponential writes them to
var/log/deprecated.log, each distinct message once per request
(Operating a site, section 8):
sort var/log/deprecated.log | uniq -c | sort -rn | headTo log them in production too, add AlwaysLog[]=deprecated under [DebugSettings]. The list is your developers' work
list before the next PHP upgrade; your own extensions are the usual source.
Database server upgrades
- Follow the vendor's procedure; Exponential does not upgrade database servers.
- Back up with the engine's tool first (Backups per database engine).
- Afterwards run Setup > Upgrade check, Check database consistency: it compares the schema with what Exponential expects.
- Character sets matter:
utf8mb4for MySQL and MariaDB,UTF8for PostgreSQL (Databases in the official order).
Coordination
| Party | Agree |
|---|---|
| Operating system or cloud provider | the end-of-support dates of PHP and the database, and the window |
| Developers of your own extensions | fixes for the deprecations found |
| Change board | one change per component |
| Service owner | the window and the public notice |
Related pages
- Upgrade overview for the public sector
- Check PHP extensions before an upgrade
- PHP versions and extensions (hosting)
- Database choice in the official order
- 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.