[rt-users] FastCGI problem

Stefan Leblanc sleblanc at radicalhorizon.com
Thu Apr 29 13:32:06 EDT 2004

Here's what I have in my httpd.conf running under apache2 with fastcgi...  Could give you an idea...

Good luck!

 LoadModule fastcgi_module modules/mod_fastcgi.so
 FastCgiIpcDir /tmp/fastcgi
 <IfModule mod_fastcgi.c>
        AddHandler fastcgi-script fcgi
        FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 3600
 Alias /rt3/NoAuth/images /opt/rt3/share/html/NoAuth/images/
 ScriptAlias /rt3/ /opt/rt3/bin/mason_handler.fcgi/
 AddHandler fastcgi-script fcgi

<VirtualHost *>
        ServerName rt3.localdomain
        ServerAlias rt3
        ServerSignature email
        DocumentRoot  /opt/rt3/share/html
        AddDefaultCharset UTF-8

        # this line applies to Apache2+mod_perl2 only
        PerlModule Apache2 Apache::compat

        #PerlModule Apache::DBI
        PerlRequire /opt/rt3/bin/webmux.pl
        #RedirectMatch permanent (.*)/$ http://rt3$1/index.html
        RedirectMatch permanent (.*)/$ http://rt3.localdomain$1/index.html
        <Location />
                SetHandler perl-script
                PerlHandler RT::Mason

-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com]On Behalf Of David
Sent: Thursday, April 29, 2004 1:18 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] FastCGI problem

Hi all,

Well after a long struggle I am almost there!

I am doing a non-root install of RT, a server where I
can't just choose anything. First of all, mod_perl is
built as a DSO. So I gave up trying with mod_perl
after getting a lot of "POST not working" bugs.

Now I have set up FastCGI. Everything is almost
working. I can tell, because I can see the HTML for
the login page! 

Problem is, for some reason, that HTML is going to my
Apache error log, not to the client. As a result
Apache gives up on mason_handler.cgi.

My configuration details:

perl 5.6.1 (I can't change it, remember)
Apache 1.3
FastCGI as a module

Part of httpd.conf:

<VirtualHost support.myserver.com
# added DHJ 27.4.04
ServerName support.myserver.com
DocumentRoot /usr/local/RT/share/html/
AddDefaultCharset UTF-8

AddHandler fastcgi-script fcgi
ScriptAlias / /usr/local/RT/bin/mason_handler.fcgi/
FastCgiIpcDir /usr/local/RT/var/fcgi/
FastCgiServer /usr/local/RT/bin/mason_handler.fcgi

Alias /NoAuth/images/
        <Location />
        SetHandler fastcgi-script


Any ideas what is going on or how to debug?


Any help

Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 

RT Developer and Administrator training is coming to LA, DC and Frankfurt this spring and summer.

Sign up early, as class space is limited. 

More information about the rt-users mailing list