Upgrading Zend Server on RPM (RHEL, CentOS and OEL)
The procedures on this page describe the upgrade procedures for a single Zend Server and a Zend Server cluster on an RPM (RHEL, CentOS, and OEL) operating system.
Please read the following restrictions carefully before proceeding.
Upgrade Restrictions
Upgrading Zend Server can only be performed when upgrading from Zend Server 9.1.x and newer to Zend Server 2019.0.x, or when upgrading between Zend Server 2019.0.x versions.
Direct upgrades from Zend Server 9.0 or older can only be performed using a clean installation of Zend Server 2019.0. If a clean installation is not possible, you will need to complete a two-step upgrade procedure. For more information, please contact the Zend Support Center.
For a list of limitations and known upgrade issues, see the Zend Server Release Notes.
Using the Zend Repository Installer
The upgrade procedures use the Linux Zend Repository Installer program which includes a simple shell script that automates the process of upgrading Zend Server through Zend's repository.
The script upgrades your Zend Server and PHP versions, according to your current configurations and target version passed. The script will notify you when an upgrade cannot be performed. This occurs in the following scenarios:
- When attempting to upgrade from Zend Server 9.0 and below
- When attempting to downgrade a PHP version
- When attempting to upgrade a Web server (e.g., from Apache to nginx)
Zend Server Versions/PHP Versions Support
This table specifies the PHP versions supported by the latest versions of Zend Server.
Zend Server 8.5 | Zend Server 9.1 | Zend Server 2018.0 | Zend Server 2019.0 |
PHP 5.6 | — | — | — |
PHP 7.1 | — | PHP 7.1 | |
PHP 7.2 | PHP 7.2 | ||
PHP 7.3 |
This section describes the procedure for upgrading a single Zend Server.
Example Scenarios:
- Upgrading from Zend Server 2018.0.x to 2019.0.x
- Upgrading between 2019.0.x versions
Note:
Zend Server 2019.0 installs 3 versions of PHP, all available with a simple PHP switch after installation.
If you are upgrading from a previous Zend Server installation, with PHP 7.1 or 7.2 already installed on Zend Server (check by running /usr/local/zend/bin/
php -v
), the installer enables and uses the PHP version which is already installed. Use PHP switch to enable PHP 7.3 if you would prefer to use that version.
Important!
When changing a major PHP version, some PHP and Zend Server configuration settings may be lost. For post-upgrade reference, we recommend making a backup of the etc
folder located in the Zend Server installation files (/usr/local/zend/etc-x.x.x
).
|
To upgrade a single Zend Server:
|
|
This procedure explains how to upgrade a Zend Server cluster using the Zend Repository Installer program.
Example scenarios:
-
Upgrading a Zend Server cluster to a cluster with the same major PHP version (Example: Zend Server 2018.0.x with PHP 7.2 to Zend Server 2019.0.x with PHP 7.2).
- Upgrading a Zend Server cluster to a cluster with a different major PHP version (Example: Zend Server 9.1.x with PHP 7.1 to Zend Server 2019.0.x with PHP 7.3).
Note:
Zend Server 2019.0 installs 3 versions of PHP, all available with a simple PHP switch after installation.
If you are upgrading from a previous Zend Server installation, with PHP 7.1 or 7.2 already installed on Zend Server (check by running /usr/local/zend/bin/
php -v
), the installer enables and uses the PHP version which is already installed. Use PHP switch to enable PHP 7.3 if you would prefer to use that version.
Important!
When changing a major PHP version, some PHP and Zend Server configuration settings may be lost. For post-upgrade reference, we recommend making a backup of the etc
folder located in the Zend Server installation files (/usr/local/zend/etc-x.x.x
).
Important!
This procedure does not require disabling the servers in the cluster before upgrading. Servers which are disabled during the upgrade process may fail to run properly when re-enabled.
|
To upgrade a Zend Server cluster, perform the following procedure for each server in the cluster:
|
During the upgrade process, Zend Server backs up the 'etc' folder containing your server and PHP configurations, and the 'db' folder containing your database information. In case something goes wrong during the upgrade process, and you cannot access Zend Server, follow the steps below to restore your older version of Zend Server.
|
To restore Zend Server:
/usr/local/zend/etc-x.x.x and /usr/local/zend/db-x.x.x
|
If this fails, please contact Zend Support. |