Issue
Zend Server should start up at IPL by default. This article describes how that happens, tells how to set up the autostart job entry if needed, and provides an alternate method using the Start Up Program (QSTRUPPGM system value) provided with the IBM i.
Environment
Zend Server running on any supported version of IBM i.
Resolution
The Zend Server installation will create an autostart job entry in subsystem QSYSWRK. To verify this entry was created successfully, from a 5250 command line with a *SECOFR class profile:
DSPSBSD QSYSWRK
Use option "3. Autostart job entries". Look for the "ZS_STR_SBS" entry (probably the last entry). It should look like this:
For Zend Server 2020.x, 2021.x and higher:
If the entry is missing, please add it:
If the entry is there, but the ZENDPHP74 subsystem is not starting up correctly, there may be some timing issue. If this is the case, you can sometimes just put the commands to start the ZENDSVR6 subsystem in the start up program defined by the QSTRUPPGM system value.
To start Zend Server from the start up program you can use this SBMJOB command:
If you do this, please remove the autostart job entry from QSYSWRK, to prevent any partial start up of the subsystem.
If the ZENDPHP74 subsystem is starting up OK, but the ZENDPHP74 Apache job is not starting in subsystem QHTTPSVR, you may leave the autostart job entry in QSYSWRK, and just use this command in your start up program to start Apache:
For Zend Server 9.1.x, 2018.x and 2019.x
If the entry is missing, please add it:
If the entry is there, but the ZENDPHP7 subsystem is not starting up correctly, there may be some timing issue. If this is the case, you can sometimes just put the commands to start the ZENDPHP7 subsystem in the start up program defined by the QSTRUPPGM system value.
To start Zend Server from the start up program you can use this SBMJOB command:
If you do this, please remove the autostart job entry from QSYSWRK, to prevent any partial start up of the subsystem.
If the ZENDPHP7 subsystem is starting up OK, but the ZENDPHP7 Apache job is not starting in subsystem QHTTPSVR, you may leave the autostart job entry in QSYSWRK, and just use this command in your start up program to start Apache:
For Zend Server 6 - 8.5.x
If the entry is missing, please add it:
If the entry is there, but the ZENDSVR6 subsystem is not starting up correctly, there may be some timing issue. If this is the case, you can sometimes just put the commands to start the ZENDSVR6 subsystem in the start up program defined by the QSTRUPPGM system value.
To start Zend Server from the start up program you can use this SBMJOB command:
If you do this, please remove the autostart job entry from QSYSWRK, to prevent any partial start up of the subsystem.
If the ZENDSVR6 subsystem is starting up OK, but the ZENDSVR6 Apache job is not starting in subsystem QHTTPSVR, you may leave the autostart job entry in QSYSWRK, and just use this command in your start up program to start Apache: