Upgrade ZendPHP and ZendHQ

Depending on your operating system, perform the following tasks to upgrade ZendPHP and ZendHQ to the latest available version:

To refer back to the installation instructions, see Install ZendPHP and Install and configure ZendHQ.

Upgrade steps for Linux and IBM i

ZendPHP and ZendHQ software is distributed using software package repositories that are compatible with the computer's specific operating system (such as Linux distributions or IBM i OS). The installation and upgrade procedures are identical to those for the OS distribution packages. We do not recommend upgrading Zend packages separately without updating OS packages.

Upgrading ZendPHP is only possible for the same minor version of PHP (for example from 8.3.12 to 8.3.18, not from 8.1.5 to 8.4.5). Upgrading ZendHQ has no version-specific limitations.

The upgrade process for ZendHQ may create extra configuration files. These may be relevant when upgrading from an older major version (for example from 1.7.0 to 2.1.0). If this happens, the system will remain functional, but you should consider reviewing the messages shown in the system console during the upgrade process and perform any suggested manual actions. Configuration files from older versions may not include all the default settings required for newer versions, and vice versa. Configuring the system is easier when the proper configuration files containing the templates for all supported settings are in place.

Installation and upgrade commands on Linux require root access. Use the sudo or doas command to gain the necessary privileges.

Installation and upgrade commands on IBM i require *SECOFR user permissions.

Upgrade steps for Windows

ZendPHP can be upgraded in the following ways:

  • By utilizing the MSI installer

  • By downloading ZIP files and extracting them to the installation directory

  • By using the PowerShell installation script

You cannot upgrade an existing non-MSI-based installation (performed using a PowerShell script or by manually extracting ZIP files) using the MSI installer. In this case, install a fresh copy using the MSI installer and manually migrate all PHP configuration settings from the old installation directory to the new one.

Upgrade troubleshooting

The following table outlines a known issue that may occur during the upgrade process, along with its corresponding error message, description, and recommended resolution.

Problem Error message Description Resolution

ZendHQ API mismatches

[Warning] 0MQ socket worker received a message with wrong API version; expected 20250603, received 20240228 (hq_zmq_scoket.cpp:317)

May occur if the ZendHQ extension is updated separately from the ZendHQ daemon (service), and the ZendHQ API version differs.

When this occurs, the ZendHQ PHP extension cannot communicate with the ZendHQ daemon, which can lead to broken applications and downtime.

  • If you updated the ZendHQ PHP extension in your ZendPHP installation, you need to update your ZendHQ daemon (service).

  • If you updated the ZendHQ daemon (service), update the ZendHQ extension on all connected ZendPHP nodes.