If the usual procedure to register a license in Zend Server fails, the instructions below present a method of applying the license manually.
Linux and OS X
1. Stop Zend Server using the command '/usr/local/zend/bin/zendctl.sh stop' (in case of cluster, do this on all nodes).
2. Open ZendGlobalDirectives.ini in a file editor and update the following lines. The path to this file varies depending on the Zend Server version that you're using:
Zend Server 2018 or earlier - /usr/local/zend/etc/conf.d/ZendGlobalDirectives.ini
Zend Server 2019 - /usr/local/zend/etc/ZendGlobalDirectives.ini
3. Execute the following queries on the database:
Zend Server 2019:
Zend Server 2018 or earlier:
Note: in the above commands, replace 'OrderNumber' and 'LicenseKey' with the actual license details.
4. Start Zend Server using '/usr/local/zend/bin/zendctl.sh start' (in case of cluster, do this on all nodes).
Windows
1. Stop Zend Server using Start | All Programs | Zend Server | Support Tool | Select "Stop" | Click "Next" | Click "Yes" (in case of cluster, do this on all nodes).
2. Update the license on the file system:
Zend Server 2019:
Open <ZS_INSTALL_DIR>\ZendServer\etc\ZendGlobalDirectives.ini in a file editor and update the following lines:
Zend Server 2018 or earlier:
Open <ZS_INSTALL_DIR>ZendServer\etc\php.ini in a file editor and update the following lines:
3. Execute the following queries on the database:
Zend Server 2019:
Zend Server 2018 or earlier:
Note: in the above commands, replace 'OrderNumber' and 'LicenseKey' with the actual license details.
4. Start Zend Server using Start | All Programs | Zend Server | Support Tool | Select "Start" | Click "Next" | Click "Yes" (in case of cluster, do this on all nodes).