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

Chapter 9 155
Apache for MPE/iX
Major Components
By default, the level is set to warn. Using a level of at least crit is
recommended.
Adding Documents
Add new documents by creating them under the document root,
/APACHE/PUB/htdocs. Documents can also be added outside of the
document root using the Alias directive in the httpd.conf file or by
using symbolic links.
The web server children that handle user requests run as WWW.APACHE,
the username specified in the JHTTPD file. For more security, user
WWW.APACHE has been created with minimal capabilities. Make sure
files are readable by WWW.APACHE and cgi scripts and programs are
executable by WWW.APACHE. WWW.APACHE must also have traverse
directory (TD) permission for all the directories in the path of the file
that it is accessing. In the POSIX shell, traverse directory permission is
shown as execute (x) permission for that directory.
cd htdocs
mkdir newdir
chown MGR.APACHE:APACHE newdir
chmod 750 newdir
One way to check if a file is accessible by Apache is to logon as
WWW.APACHE and try to access the file.
Troubleshooting
For any kind of trouble with Apache, first look in the error log. Execute
a tail command on the error_log from the POSIX shell to look at the
last few entries. The last entry will be the most recent entry:
shelliX> tail /APACHE/PUB/logs/error_log
For troubleshooting Apache at the source code level, the Apache
program file can be run with the MPE debugger. It is best to run it with
the -X (capital "X") option to prevent the parent Apache process from
creating child processes:
:run httpd.pub.apache;info="-X";debug
Unsupported Functionality
HP does not support Apache binaries built by individuals or
organizations outside of HP.
HP also does not support the scripts and programs in the
/APACHE/PUB/bin directory. This is contributed software from the
Apache Software Foundation and is provided for example only.