Versions Compared

Key

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

...

Environment

Zend Server for IBM i version 9 or earlier, running on any supported version of IBM i

...

Note
iconfalse
titleNote: Where you see "ZENDPHP7ZENDPHP74", you can substitute "ZENDPHP7" or ZENDSVR6" or "ZENDSVR" to match your version.

This is done to make the article more easy to read.

...

Use option "3. Autostart job entries".  There will be a lot of them in this subsystem, so you will probably need to page down to see entries for Zend Server.  These are the typical* entries for Zend Server, for each version:

Info
iconfalse
Job            Job Description     Library
Version 2020, 2021: Job Description Library
ZS20STRSBS       ZSVRIPLD          ZENDPHP74

Version 9, 2018, 2019: ZS9_STRSBS ZSVRIPLD ZENDPHP7
Version 8.5: ZS8_STRSBS ZSVRIPLD ZENDSVR6
Version 6,7, or 8: ZS_STR_SBS ZSVRIPLD ZENDSVR6
Version 5: ZS_STR_SBS ZSVRIPLD ZENDSVR

...

This entry is also responsible for starting the ZENDPHP74 (or ZENDPHP7 ( or ZENDSVR6 or ZENDSVR) Apache instance. So, in most cases, this should be all you need to do to prevent any start up of Zend Server and the Apache instance.  However, the Apache instance may start up anyway once you remove the Autostart Job Entry.  This may be because someone has added an STRTCPSVR *HTTP command (see below) to start the Apache instance to the QSTRUP program or a job scheduled to run at start up.  This may also happen if the global default for HTTP Server Autostart is *YES.

If the global default for HTTP Server Autostart is *YES, you will need to set it to *NO for the ZENDPHP74 (or ZENDPHP7 ( or ZENDSVR6 or ZENDSVR) Apache instance.

...

The first attribute is Autostart. If it is set to *YES, you need to specify that the ZENDPHP7 ZENDPHP74 instance will not autostart. This is done in the IBM Web Administration utility.

...

Under the Manage -> All Servers -> All HTTP Servers tab, click on ZENDPHP7ZENDPHP74.

This should bring up the ZENDPHP7 ZENDPHP74 instance for management. In the menu to the left, find Server Properties -> General Server Configuration. Under the General Settings tab, the first Directive you should see is Autostart. It is probably set to Global, which means do whatever is set for all servers. Change it to No. Click Apply.

...

Info
iconfalse
ADDAJE SBSD(QSYSWRK) JOB(ZS9_STRSBS) JOBD(ZENDPHP7ZENDPHP74/ZSVRIPLD)

Remember to use the actual job name that you see on the listing that matches your version of Zend Server.  The above example would remove the default entry for version 9202x.  If you are working with some other version, be sure to use the correct job name and library.

The autostart job entry should start the ZENDPHP7 ZENDPHP74 subsystem and the ZENDPHP7 ZENDPHP74 Apache instance in subsystem QHTTPSVR. Sometimes the Apache instance start up will fail, usually due to timing issues with the start up of TCP.  If the ZENDPHP7 ZENDPHP74 subsystem is starting up OK, but the ZENDPHP7 ZENDPHP74 Apache job is not starting in subsystem QHTTPSVR, you may leave the autostart job entry in QSYSWRK, and just use these commands in your start up program to start Apache:

Info
iconfalse

DLYJOB DLY(300)

STRTCPSVR SERVER(*HTTP) HTTPSVR(ZENDPHP7ZENDPHP74)

Using menu options to add and remove the entries

Starting with Zend Server 8.5, there are menu options on the maintenance menu (ZSMAINT) that will add or remove the autostart job entry.  To go to the maint menu:


Info
iconfalse

Version 2020, 2021, and higher: go zendphp74/zsmaint


Info
iconfalse

Version 9, 2018, 2019 9 and higher: go zendphp7/zsmaint


Info
iconfalse

Version 8.5: go zendsvr6/zsmaint

...