[rt-users] Trouble configuring FastCGI
Tim Wilson
tim_wilson at hopkins.k12.mn.us
Sun Mar 13 01:49:12 EST 2005
Hey everyone,
I'm in the process of converting RT 3.2 from a Debian system running Apache
1.3 and mod_perl 1 to RHEL4 with Apache 2 and FastCGI. I think I've got RT
set to go, but I'm stuck with the FastCGI. I've never used FastCGI before so
I'm trying to follow the instructions the wiki closely. (
http://wiki.bestpractical.com/index.cgi?FastCGIConfiguration)
I'm trying to get RT to run as a static/external FastCGI, but the init
script on the wiki isn't working. I've got:
#!/bin/sh
RTPATH=/opt/rt
RTUSER=apache
FCGI_SOCKET_PATH=$RTPATH/var/appSocket
PERLPATH=/opt/perl/bin/perl
case $1 in
start)
echo -n "Starting RT: mason_handler.fcgi"
cd $RTPATH
export FCGI_SOCKET_PATH
su $RTUSER -c $PERLPATH bin/mason_handler.fcgi &
echo
;;
stop)
echo -n "Stopping RT: "
pids=`ps axww | awk '/[m]ason_handler.fcgi/ { print $1}'`
if [ -n "$PIDS" ]
then
echo -n kill -TERM $PIDS
kill $PIDS
echo
else
echo RT not running
fi
;;
restart:force-reload)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/rt { stop | start | restart }"
exit 1
;;
esac
But it fails silently and the mason_handler doesn't start. (I did change the
RTUSER to apache since the directions seemed to suggest to configure RT so
it was run by the web user.)
Interestingly, if I su apache and run the mason_handler.fcgi directly it
generates the HTML for the RT homepage.
Anybody got RT working in the configuration I'm trying
(RHEL4/Apache2/FastCGI)? If so, I could really use some suggestions. A
recipe on the wiki would be great! If I get this working, I'll do it myself.
-Tim
--
Timothy Wilson
Technology Integration Specialist
Hopkins ISD #270, Hopkins, MN, USA (4456.013'N 9324.736'W)
ph: 952.988.4103 fax: 952.988.4311 AIM: tis270
More information about the rt-users
mailing list