If SELinux is active on the server that runs your CollabNet
TeamForge site, modify it to allow the services
that TeamForge requires.
Pre-requisites to set up the SELinux environment:
-
Stop TeamForge.
- /etc/init.d/collabnet stop all
-
Set SELinux to run in enforcing mode on the TeamForge application server.
-
Edit the file /etc/sysconfig/selinux and set
SELINUX=enforcing.
-
Turn off TeamForge startup on
boot.
-
Reboot the server.
-
Ensure that SELinux is running in enforcing mode.
-
Make sure that the SELINUX_SETUP site options token is set to
true in the site-options.conf file of
the TeamForge application
server.
SELINUX_SETUP=true
-
Run the following commands if Review Board is integrated with TeamForge.
- semanage
fcontext -a -t httpd_sys_rw_content_t
"/opt/collabnet/reviewboard/data(/.*)?"
- restorecon -R
-v /opt/collabnet/reviewboard/data
- semanage fcontext -a -t
httpd_sys_rw_content_t
"/u1/reviewboard(/.*)?"
- restorecon -R -v
/u1/reviewboard
- semanage fcontext -a -t httpd_sys_rw_content_t
"/opt/collabnet/teamforge/var/home/apache(/.*)?"
- restorecon -R -v
/opt/collabnet/teamforge/var/home/apache
-
Before recreating runtime, remove pdk-root and
pdk-sf-admin directories by running the following
commands:
- rm -rf /tmp/pdk-root
- rm -rf /tmp/pdk-sf-admin
-
Recreate the runtime environment.
Important: Do this only if you have modified the
site-options.conf file.
- cd
/opt/collabnet/teamforge-installer/8.2.0.0
- ./install.sh -r -I
-V
-
Start TeamForge.
- /etc/init.d/collabnet start
-
Fix the SELinux data permissions.
- cd
/opt/collabnet/teamforge/runtime/scripts
- ./fix_data_selinux_permissions.sh
Note: If your data directory is on a NetApp volume, you may observe some warning
messages which can be ignored safely.