Check suexec.log.
- Make sure you have “SuexecUserGroup rtuser rtgroup” (as mentioned in an other post).
(or whatever you set rt to run as during configure) in httpd.conf. - The fastcgi-server executable can’t be setgid:
chmod a-s /path_to_rt/bin/*
- The rtuser needs to be owner of the directory and files where fastcgi server is located:
chown -Rh rtuser:rtgroup /path_to_rt/bin
- RT needs to be in Apache docroot, I put it in /var/www/rt (using Apache from Fedora distro).
My httpd.conf:
SuexecUserGroup rt rt
FastCgiWrapper /usr/sbin/suexec
FastCgiIpcDir /var/log/fastcgi
FastCgiServer /var/www/rt/bin/mason_handler.fcgi -processes 10 -idle-timeout 300 -user rt -group rt
I switched to suexec as well after having to restart RT every day due to “Insecure dependency” errors.
I got these errors in the RT log:
[Wed May 5 13:50:06 2004] [crit]: Transaction not committed. Usually indicates a software fault. Data loss may have occurred (/usr/local/rt3/bin/mason_handler.fcgi:62)
Once the “Insecure dependency” occured, that fascgi-server probably was “unstable”, and needed restart.
Haven’t had any “insecure dependency” since I switched to suexec, and no restarts other than after RT upgrade.
Regards,
Ronny Pettersen-----Original Message-----
Date: Fri, 28 May 2004 11:33:07 +0100
From: “Nick Bown” Nick.Bown@fundshub.com
Subject: [rt-users] FastCGI and suExec problems
To: rt-users@lists.bestpractical.com
Hello,
I’m running RT 3.0.11 on a Solaris 9 server with Apache 2.0.49, Perl
5.8.3 and FastCGI. My users seem to be getting the:
error: Insecure dependency in eval while running with -T switch at
/usr/local/lib/perl5/5.8.3/Locale/Maketext/Guts.pm line 247.
error constantly at the moment so I have tried to get the suExec wrapper
working with the mason_handler on the httpd.conf file:
FastCgiIpcDir /tmp/fastcgi
FastCgiWrapper /usr/local/apache2/bin/suexec
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 300
-processes 6
But I now get the following error when I restart Apache:
<<<< CUT >>>>
[Fri May 28 10:42:52 2004] [warn] FastCGI: server
“/opt/rt3/bin/mason_handler.fcgi” (uid 102, gid 60001) started (pid
15053)
[Fri May 28 10:42:52 2004] [warn] FastCGI: server
“/opt/rt3/bin/mason_handler.fcgi” (pid 15053) terminated by calling exit
with status ‘103’
<<<< CUT >>>>
Does anyone have any ideas on what I’m missing from my config?
Cheers,
Nick