Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

PHP and database upgrades

Upgrading the platform under Exponential - PHP versions supported, database server versions, the order of steps, staging, and what an in-house IT team or a government cloud provider must coordinate.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/operations/upgrades-and-change/php-and-database-upgrades.md

On this page

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

  1. What is supported
  2. The order of upgrades
  3. Preparing with the deprecations log
  4. Database server upgrades
  5. Coordination
  6. Related pages

What is supported

ComponentSupportSource
PHP 8.0the oldest supported; Velocity runs on it from its release 0.0.4.54Requirements
PHP 8.1 to 8.5supported, Velocity includedthe same
PHP 7.4usable without support from 6.0.15 (6.0.8 to 6.0.14 need PHP 8.1)Upgrading, Part B
DatabasesSQLite 3, PostgreSQL, MongoDB, MariaDB, Oracle, MySQL, with practical minimumsDatabases in the official order

The order of upgrades

  1. Update Exponential to the newest 6.0.x first, so fixes for newer PHP versions are in place.
  2. Upgrade PHP on staging; install the PHP extensions the site needs (./console exp:velocity ext check --allow-root-user lists what is missing and prints the install command).
  3. Test on staging (Staging and approval).
  4. Upgrade production in a window; reload the PHP-FPM that serves the site (the service may not be named php-fpm on servers with several PHP versions; exp:velocity deploy finds it with [DeploySettings] PhpFpmService=auto) or restart Velocity.
  5. 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 | head

To 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: utf8mb4 for MySQL and MariaDB, UTF8 for PostgreSQL (Databases in the official order).

Coordination

PartyAgree
Operating system or cloud providerthe end-of-support dates of PHP and the database, and the window
Developers of your own extensionsfixes for the deprecations found
Change boardone change per component
Service ownerthe window and the public notice

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x