RT2 and FastCGI

Hi Guys,

I am thinking of moving my RT2 from using mod_perl to using FastCGI. I am currently running on a Unix box, Solaris 8 and I am running RT 2.0.13, mod_perl / mod_SSL. I am not too familiar with FastCGI and was wondering whether this would be a simple straight-forward install or do I have to modify things in order to use FastCGI.

Thanks
Hillary

“The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers.”

Try the RT FAQ, there’s a section about installing RT with FastCGI.-----Original Message-----
From: Gororo, Hillary [mailto:HGororo@chartercom.com]
Sent: Wednesday, November 27, 2002 12:57 AM
To: rt-users@lists.fsck.com
Subject: [rt-users] RE: RT2 and FastCGI

Hi Guys,

I am thinking of moving my RT2 from using mod_perl to using FastCGI. I am
currently running on a Unix box, Solaris 8 and I am running RT 2.0.13,
mod_perl / mod_SSL. I am not too familiar with FastCGI and was wondering
whether this would be a simple straight-forward install or do I have to
modify things in order to use FastCGI.

Thanks
Hillary

Hi,

A few days ago I changed from RT2.0.14 with mod_perl on Solaris 8 into RT
2.0.15 with fast_cgi on FreeBSD + better hardware and the improvement was
fantastic. Useally we had responsetime in RT 3-10 seconds now we got 2-3
seconds tops!

The change from mod_perl into fast_cgi was really easy. I made the changes
mentioned in the FAQ (5 minutes work, see FAQ text below), and then everything
worked :slight_smile:

As an alternative to using mod_perl, fastCGI has been known to work.

     1.Use CPAN to install "FCGI" 
     2.Download [http://www.fastcgi.com/dist/mod_fastcgi.tar.gz] 
     3.Decompress it. 
     4.Build as a DSO via: apxs -o mod_fastcgi.so -c *.c 
     5.Fix the permissions via: chmod 755 mod_fastcgi.so 
     6.Install the compiled DSO via: cp mod_fastcgi.so 

/path/to/apache/modules/mod_fastcgi.so
7.Update your httpd.conf file to include

        LoadModule fastcgi_module modules/mod_fastcgi.so
        AddModule mod_fastcgi.c
        AddHandler fastcgi-script fcgi

        FastCgiServer /path/to/rt2/bin/mason_handler.fcgi
        Alias /NoAuth/images/ /path/to/rt2/WebRT/html/NoAuth/images/
        ScriptAlias / /path/to/rt2/bin/mason_handler.fcgi/

        (Note, these lines (in particular, the FastCgiServer directive) 

must appear after the User and Group directives.)

        You should also add the following line to the RT <VirtualHost> 

block, in order to stop FastCGI from trying to process rt.jpg:

        Alias /NoAuth/images/rt.jpg /path/to/rt2/WebRT/html/NoAuth/images/r

t.jpg

     8.Restart the webserver 

  If you do not use the AddHandler and the FastCgiServer commands then 

apache will not keep the mason_handler.fcgi program running between requests.
If the handler is not running between
requests RT2 will run very slowly.

/Cheers,

Patrick Harlin, SysAdmin
Luleå University of Technology
Sweden

It was with SSL both on Solaris and on the new platform FreeBSD.

/Cheers,

Patrick Harlin, SysAdmin
Luleå University of Technology

     7.Update your httpd.conf file to include 

        LoadModule fastcgi_module modules/mod_fastcgi.so
        AddModule mod_fastcgi.c
        AddHandler fastcgi-script fcgi

        FastCgiServer /path/to/rt2/bin/mason_handler.fcgi
        Alias /NoAuth/images/ /path/to/rt2/WebRT/html/NoAuth/images/
        ScriptAlias / /path/to/rt2/bin/mason_handler.fcgi/

        You should also add the following line to the RT <VirtualHost> 

block, in order to stop FastCGI from trying to process rt.jpg:

        Alias /NoAuth/images/rt.jpg /path/to/rt2/WebRT/html/NoAuth/images/rt.jpg

the docs are slightly wrong. You don’t need to explicitly Alias rt.jpg, because
you’ve already Alias’ed all of /NoAuth/images. Besides, if you add
that Alias line, after the ScriptAlias, the first one takes
precedence, and fastcgi still tries to process it.

I’ve updated rtfm.

seph

Patrick,On Wed, 27 November 2002 08:47:52 +0100, Patrick Harlin wrote:

A few days ago I changed from RT2.0.14 with mod_perl on Solaris 8 into RT
2.0.15 with fast_cgi on FreeBSD + better hardware and the improvement was
fantastic. Useally we had responsetime in RT 3-10 seconds now we got 2-3
seconds tops!

Is that with SSL on the RT server or without? I understand
SSL does have some impact on the response time, although not
overly much (1 or 2 seconds max?)…

curious,
Alexander