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

154 Chapter9
Apache for MPE/iX
Major Components
If you are unsuccessful in starting the HTTPD program, you can get more
information about the problem by trying one or more of these
troubleshooting techniques:
1. Look at the output of the JHTTPD spoolfile
2. Check the messages in the /APACHE/PUB/logs/error_log file
3. Verify the syntax of the httpd.conf file. This catches many, but
not all, syntax problems in the httpd.conf file
:run HTTPD.PUB.APACHE:info=”-t”
4. Try to telnet to Apache’s port (port 80 if you have not modified the
port directive set in the httpd.conf.sample file).
If you cannot telnet to Apache’s port, then your problem is not with the
web server. You are not yet reaching your HP 3000 box. A successful
telnet connection should look something like,
telnet yourserver.com 80
Trying...
Connected to yourserver.com.
Escape character is ‘^]’.
Stopping Apache
Apache is stopped by aborting the Apache job from either the CI or the
POSIX shell. Use SHOWJOB to view the Apache job:
JOBNUM STATE IPRI JIN JLIST INTRODUCED JOB NAME
#J16 EXEC 10S LP TUE 10:27A JHTTPD,WWW.APACHE
:ABORTJOB #J16 or :ABORTJOB JHTTPD,WWW.APACHE
Apache can also be stopped using :ABORTJOB from the POSIX shell
:xeq sh.hpbin.sys -L
shell>callci “abortjob #j16” or shell>callci “abortjob jhttp,www.apache”
Error Logging
Apache error logging is useful when trying to start Apache as well as
for monitoring a running web server. Apache logs errors into a log file
called error_log by default. This log file resides in the
/APACHE/PUB/logs directory.
The number of messages logged in the error log is set by the LogLevel
directive in the httpd.conf file. Possible values for LogLevel (by
increasing significance) are debug, info, notice, warn, error, crit, alert,
emerg. When a particular level is specified, messages from all other
levels of higher significance are reported as well. For example, when
LogLevel is “info”, then messages with log levels of notice, warn and up
to emerg are also posted.