Installing and Configuring Apache Toolkit for Serviceguard for Linux

Access to the shared directory and files is denied to Apache because the default Apache's
AppArmor profile does not allow access to these files.
To grant access to the shared directory, complete the following steps:
1. To make the shared directory and files accessible by Apache, edit the Apache’s AppArmor
profile (/etc/apparmor.d/usr.sbin.httpd2-prefork) by adding entries to grant access
to the shared directory and files. For this, use a text editor or the YaST interface (Edit AppArmor
Profile).
For example, to grant read access to all the configuration files in the shared directory
(/shared/apache_1) to Apache, add the following line to the file
/etc/apparmor.d/usr.sbin.httpd2-prefork.
/shared/apache_1/*.conf r
2. Add such entries for all other directories or files that will be accessed by Apache.
3. Reload the profile into the kernel by entering the following command:
apparmor_parser -r usr.sbin.httpd2-prefork
4. Run the Apache package. If the package fails to start, then check AppArmor audit log for
REJECT messages to Apache. If there are any, then use the method specified above to update
the profile. You can also use the update wizards-YaST (Update Profiles Wizard) or logprof
For more information on updating profiles using YAST or logprof, see the Novell documentation site.
CONCLUSION
By setting up the Apache Web Server and integrating it with the Serviceguard for Linux environment
using the High Availability Apache toolkit, you can avail many benefits, such as reduction in
application integration effort and ease of deployment of the Apache Web Server. In addition,
maintenance and upgrading of the Apache Web Server becomes simpler. You can also choose
among various criterions for the Apache Server to fail over.
Note: Unless otherwise stated, the High Availability Apache toolkit runs on all distributions and
hardware supported by Serviceguard for Linux.
© 2007
Hewlett
-
Packard Development Company, L.P. The information contained
herein is subject to change without notice. The only warranties for HP products and
services are set forth in the express warranty statements accompanying such
products and services. Nothing herein should be construed as constituting an
additional warranty. HP shall not be liable for technical or editorial errors or
omissions contained herein.
Itanium is a trademark or registered trademark of Intel Corporation or its
subsidiaries in the United States and other countries.
August 2007