Configuring and Managing MPE/iX Internet Services (MPE/iX 6.5)

Chapter 9 153
Apache for MPE/iX
Major Components
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 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 is to check server status using either ps from the
POSIX shell or using :SHOWPROC at the CI. The parent process is the
HTTPD process with the -f option.
:SHOWPROC; job=jhttpd,www.apache
D202 0:00.079 WAIT J16 73 :RUN HTTPD;info=’-f
/APACHE/PUB/conf/httpd.conf’
D238 1:25.371 WAIT J16 97 (HTTPD.PUB.APACHE) -f
/APACHE/PUB/conf/httpd.conf
D202 0:00.066 WAIT J16 78 (HTTPD.PUB.APACHE)
D202 0:00.072 WAIT J16 76 (HTTPD.PUB.APACHE)
D202 0:00.069 WAIT J16 93 (HTTPD.PUB.APACHE)
D202 0:00.090 WAIT J16 106 (HTTPD.PUB.APACHE)
D202 0:00.050 WAIT J16 99 (HTTPD.PUB.APACHE)
D202 0:00.055 WAIT J16 107 (HTTPD.PUB.APACHE)
shell> ps -ef | grep HTTPD
UID PID PPID C STIME TTY TIME COMMAND
WWW.APACHE 720972 655457 0 Dec 31 ldev10 0:00 HTTPD.PUB.APACHE
WWW.APACHE 589902 655457 0 Dec 31 ldev10 0:00 HTTPD.PUB.APACHE
WWW.APACHE 3014749 655457 0 Dec 31 ldev10 0:00 HTTPD.PUB.APACHE
WWW.APACHE 655457 5963849 0 Dec 31 ldev10 1:23 HTTPD.PUB.APACHE info=-f
WWW.APACHE 4587619 655457 0 Dec 31 ldev10 0:00 HTTPD.PUB.APACHE
WWW.APACHE 262250 655457 0 Dec 31 ldev10 0:00 HTTPD.PUB.APACHE
WWW.APACHE 3407979 655457 0 Dec 31 ldev10 0:00 HTTPD.PUB.APACHE
After the HTTPD program is running, make sure you can also access files
in the directory tree. Some pages to try are:
Your server’s Home Page. This brings up the default home page. To
modify this page, edit the /APACHE/PUB/htdocs/index.html file.
http://yourserver.com
MGR.APACHEs Home Page. This is the default page for user
MGR.APACHE. To modify this page, copy the sample file, then edit
/APACHE/PUB/public_html/index.html.
shell> cd /APACHE/PUB/public_html
shell> cp index.html.sample index.html
http://yourserver.com/~MGR.APACHE
The Apache on-line documentation manual
http://yourserver.com/manual