Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Issue

1) Starting with Zend Server version 2019.0.0, multiple versions of PHP are available (PHP 7.1.x, PHP 7.2.x and PHP 7.3.x), and the active version can be changed whenever desired either through the User Interface (UI) or a menu option.  The location of the "active" php.ini file is incorrectly defined in the fastcgi.conf file, which prevents Zend Server from finding the correct location of the active version of php.ini when the version of PHP has been changed. 

...

This article will describe how to fix the fastcgi.conf file so that Zend Server is able to locate the "active" version of PHP when running the deployed applications. 

2) The other issue you may encounter is that the value of the ENV variable INSTALLATION_UIDvar INSTALLATION_UID is left with a value of TIMESTAMP rather than the correct numeric value from the zce.rc file.  This will cause the IPC objects and shared memory files used by Zend Server to be incorrectly created with TIMESTAMP as part of the file name rather than the intended numeric value. 

Environment

Zend Server 2019.0.0 and higher running on all supported versions of the IBM i OS.

Resolution


modify the fastcgi.conf file at the following location.   Please note that the procedure does require Zend Server to be restarted and also Requires user QSECOFR to run the Reset of Zend Server at the end. 

/www/zendphp7/conf/

Please make a backup copy of the fastcgi.conf file first so that it can be reverted if neccessary.  Also, please make sure to use an editor such as Notepad++ so that you can ensure that no addition / unseen characters are added to the file by mistake. 

Locate the variable "SetEnv="PHPRC" and replace it with the following, which includes the path to the "active" php.ini file.  Be careful not to add any additional spaces before or after the value that you copy in. 

SetEnv="PHPRC=/usr/local/zendphp7/php/active/etc/"

Save the changes to the file.  A Reset of Zend Server is needed to pickup the changes.  

GO ZENDPHP7/ZSMAINT   and take option 41. Reset Zend Server environment

This will end Zend Server, rebuild the necessary objects and then restart Zend Server.