Communicator e3000 MPE/iX Release 6.5 Express 2 (Software Release C.65.02) (30216-90322)

30 Chapter3
Technical Articles
Apache 1.3.9 for MPE/iX
shell/iX>kill `cat /APACHE/PUB/logs/httpd.pid`
shell/iX>cd /APACHE/PUB/logs
shell/iX>mv error_log error_log134
shell/iX>mv access_log access_log134
Apache 1.3.9 runs as WWW.APACHE. If your previous version of Apache was running as a
different user, you must change your documents (.html, .txt, etc.) to be readable by
WWW.APACHE, your log files must be writeable by WWW.APACHE, and your CGI must
be executable by WWW.APACHE. The Apache Troubleshooting Guide,
http://jazz.external.hp.com/src/apache/troubleshoot.txt, has examples on how to set these
permissions. File permissions will not be updated by the Apache 1.3.9 installation unless
patch MPELX37 is installed.
If your current version of Apache is running successfully as WWW.APACHE, such as
Apache 1.3.4, update to Apache 1.3.9 by following the installation and configuration
instructions as given. File permissions should not be a problem.
Running Apache
Startup
Apache can be started from either the CI or the POSIX shell.
:stream jhttpd.pub.apache
or
shell/iX>callci stream JHTTPD.PUB.APACHE
Verifying Startup
Successful installation and startup of Apache 1.3.9 can be verified by
Doing a :SHOWJOB to see if JHTTPD,WWW.APACHE is running
Checking JHTTPD's output spoolfile
Looking at the content of the error_log
Accessing web pages
To check the content of the error_log,
shell/iX>cd /APACHE/PUB/logs
shell/iX>tail error_log
If the JHTTPD job is running, try accessing Apache's home page,
http://yourserver.com
If Apache does not start, try consulting the Apache Troubleshooting Guide for tips on
debugging the problem.
Shutdown
Apache can be shut down by issuing an :ABORTJOB or kill. Using kill (which defaults
to kill -TERM) is the preferred method since it uses Apache's internal routines to clean
up open resources and shut down gracefully.