Date: Fri, 29 Mar 2024 09:05:24 +0000 (UTC) Message-ID: <1294875498.458.1711703124280@library.aws.roguewave.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_457_213641183.1711703124278" ------=_Part_457_213641183.1711703124278 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The Zend Server Apache instance for Zend Server 2020.x and higher, on IB= M i requires three ports. They are 10100, 10101, 10103 These po= rts should not be in use by any other process during the installation and o= peration of Zend Server for IBM i. This article tells how to check to= see if these ports are in use.
If you are using Zend Server versions 9.1.x, 2018.x or 2019.x, the= ports are 10090, 10091, and 10093. If you are using a version of Zen= d Server prior to 9.1, the ports are 10080, 10081, and 10083.
Version 6 or higher of Zend Server for IBM i, running on any supported v= ersion of IBM i.
Note: For versions of Zend Server 9.1.= x, 2018.x and 2019.x the ports and Apache instance are different.
For versions 9.1.x, 2018.x and 201= 9.x, the ports are 10090, 10091, and 10093, and the Apache instance is ZEND= PHP7. Please make these substitutions as you work through the steps i= n this article if you are installing one of these older versions.
Note: For versions of Zend Server prio= r to version 9, the ports and Apache instance are different.
For versions 6, 7, 8, and 8.5, the= ports are 10080, 10081, and 10083, and the Apache instance is ZENDSVR6.&nb= sp; Please make these substitutions as you work through the steps in this a= rticle if you are installing one of these older versions.
Use the NETSTAT command to see which ports are in use.<= /p>
Note: NETSTAT can only tell which port= s are in use by active processes.
This procedure will only tell you = if any of the required ports are in use while you are looking. Some j= obs that use these ports may run at other times. It is a good idea to= use NETSTAT just prior to installing Zend Server for IBM i to make sure th= e ports are available at install time. It is also useful to check for= problems with port conflicts in cases where, for instance, the ZENDPHP74 A= pache instance will not start.
Pl= ease log in to a 5250 session using a *SECOFR class user profile. Fro= m the command line:
NETSTAT *CNN
This will bring up the "Work with IPv4 Connection Status" display. = We are interested in looking at the Local Port. Notice that on this = display, some of the Local Ports are numbers, and some are text.
Please use F14 so that all Local Ports are displayed as numbers.
Now, use F13 to set the sort order to Local Port. F13 brings up th= e "Select Column to Sort" pop up window. Find "Local Port" on the lis= t of Column Titles (it is in the third row), and give it a '1'. Press= enter to save the selection.
You should now be back in the "Work with IPv4 Connection Status" display= , sorted by Local Port, with all ports displayed as a number.
Now, please Page Down until the Local ports displayed include the range = 10100 to 10103
If Zend Server is not installed, or the ZENDPHP74 Apache instance is not= active, ports 10100, 10101, and 10103 should not be displayed. In th= is example, nothing is displayed between Local Ports 8479 and 11279:
Remote Rem= ote Local = &n= bsp;
Address = Port Port Idle Time State &= nbsp;
* &nbs= p; *  = ; 8474 +++++++++ Listen
* &nbs= p; &= nbsp; * 8475 138:42:12 = ; Listen
* &= nbsp; &nbs= p; * 8476 138:42:29 Listen =
* &nbs= p; * 8477= +++++++++ Listen
* &nbs= p; &= nbsp; * 8478 +++++++++ List= en
* &= nbsp; &nbs= p; * 8479 +++++++++ Listen =
* &nbs= p; * 11279 ++++= +++++ Listen
127.0.0.1 &= nbsp; 62271 12887 +++++++++ Close= d
127.0.0.1 = 8473 13959 000:30:37 Established
12= 7.0.0.1 17463 24255&n= bsp; +++++++++ Closed
127.0.0.1 &nbs= p; 38239 52598 +++++++++&nb= sp; Closed
127.0.0.1 &nb= sp; 23919 54687 +++++++++ Closed &= nbsp;
This indicates ports 10100, 10101, and 10103 are available (check for 10= 090, 10091 and 10093 for versions 9.1.x, 2018.x and 2019.x or check for 100= 80, 10081, and 10083 for versions prior to Version 9). If Zend = Server for IBM i is not installed, it should be safe to install it. I= f Zend Server for IBM i is installed, this would indicate that the ZENDPHP7= 4 Apache instance is not active.
This next example shows how the display might look if the ZENDPHP74 Apac= he instance is active:
Remote Rem= ote Local = &n= bsp;
Address = Port Port Idle Time State &= nbsp;
* &nbs= p; *  = ; 8477 +++++++++ Listen
* &nbs= p; &= nbsp; * 8478 +++++++++ = ; Listen
* &= nbsp; &nbs= p; * 8479 +++++++++ Listen =
* &nbs= p; * 10100 = ; 000:01:02 Listen
* &n= bsp;  = ; * 10101 000:01:02 Listen &= nbsp;
* &nb= sp; * 10103&nbs= p; 000:00:11 Listen
127.0.0.1  = ; 21253 10103 000:00:43 Tim= e-wait
127.0.0.1 30218= 10103 000:00:43 Time-wait
127.0.0.1  = ; 40637 10103 000:00:11&nbs= p; Time-wait
127.0.0.1 5= 8862 10103 000:00:11 Time-wait
* &nbs= p; &= nbsp; * 11279 +++++++++ Listen &n= bsp;
127.0.0.1 62271&nbs= p; 12887 +++++++++ Closed
Notice the first three entries for= the ports do not have a Remote Address specified, but just show an asteris= k. If you use option 8 on any of these three, you should see a bunch = of ZENDPHP74 jobs on the "Display Jobs Using Connection" display. The= additional entries we see for Local Port 10103 showing a Remote Address of= 127.0.0.1 are very temporary, and it is often not possible to enter an opt= ion 8 for them before the job is finished. If you do get into the "Di= splay Jobs Using Connection" display for one of these, it will likely show = "(No jobs)", which is normal when this port is used by Zend Server. T= his indicates the process using the port is not associated with a job.
Note: Some customers will change one o= r more of the default Zend Server ports.
We do not recommend this, but some= times a customer will change a port. In this case, we expect the cust= omer will know which ports should be active when the ZENDPHP74 instance is = active. For new or clean installations, the default ports must be ava= ilable, as they are used during the installation. Port changes can on= ly be done after the software is successfully installed.