Configuring and Managing MPE/iX Internet Services (July 2001)

Chapter 9 169
Apache for MPE/iX
Major Components
Start Apache
Start the HTTPD web server program by streaming the JHTTPD job
file. This can be done from either the CI or the POSIX shell:
:STREAM JHTTPD.PUB.APACHE
or
:XEQ SH.HPBIN.SYS -L
shell/iX>callci “stream jhttpd.pub.apache”
Verify that Apache is Running
There are a number of ways to verify if the Apache web server is
running or, if it is not, to isolate how far the startup process has
progressed.
After streaming the JHTTPD file, use :SHOWJOB to view the running
job:
JOBNUM STATE IPRI JIN JLIST INTRODUCED JOB NAME
#J16 EXEC 10S LP TUE 10:27A JHTTPD,WWW.APACHE
Another method used to check server status, is executing :SHOWPROC at
the CI or using ps from the POSIX shell. Here the parent HTTPD
process is PIN 76, the child of SH.HPBIN.SYS.
:SHOWPROC; job=httpd,www.apache
QPRI CPUTIME STATE JOBNUM PIN (PROGRAM) STEP
D202 0:00.182 WAIT J321 75 :XEQ sh.hpbin.sys "-c 'umask 007;./HTTPD -$
D202 0:00.202 WAIT J321 65 (SH.HPBIN.SYS) -c 'umask 007;./HTTPD -f $
D202 0:03.313 WAIT J321 76 (HTTPD.PUB.APACHE)
D202 0:00.053 WAIT J321 91 (HTTPD.PUB.APACHE)
D202 0:00.050 WAIT J321 79 (HTTPD.PUB.APACHE)
D202 0:00.051 WAIT J321 43 (HTTPD.PUB.APACHE)
D202 0:00.049 WAIT J321 95 (HTTPD.PUB.APACHE)
D202 0:00.048 WAIT J321 58 (HTTPD.PUB.APACHE)
Using ps to display process status shows PID 19660876 as the parent
HTTPD process. It is the child of PID 36896833, SH.HPBIN.SYS.
shell/iX> ps -ef | grep HTTPD
WWW.APACHE 15466539 19660876 0 Dec 31 ldev10 0:00 HTTPD.PUB.APACHE
WWW.APACHE 11010106 19660876 0 Dec 31 ldev10 0:00 HTTPD.PUB.APACHE
WWW.APACHE 36896833 15204427 0 Dec 31 ldev10 0:00 SH.HPBIN.SYS
info=-c 'umask 007;./HTTPD
WWW.APACHE 19660876 36896833 0 Dec 31 ldev10 0:03 HTTPD.PUB.APACHE
WWW.APACHE 23527503 19660876 0 Dec 31 ldev10 0:00 HTTPD.PUB.APACHE
WWW.APACHE 23396443 19660876 0 Dec 31 ldev10 0:00 HTTPD.PUB.APACHE
WWW.APACHE 24510559 19660876 0 Dec 31 ldev10 0:00 HTTPD.PUB.APACHE