RT/2 FastCGI and Multiple Instances

Hi all

I’m despairing trying to find the RT/2 Manual about how to enable FastCGI.

There is a reference on the new wiki, but everything there is about RT/3.
There are references to archive.org but the subsites have not been indexed.

So if somebody has RT/2 running with fastcgi, could you please post your
where RT/2 ist running?

Second problem. I read that you have to run FastCGI if you want to run
multiple instances of RT in the same apache. Same problem here. Most docs are
about RT/3. Does this also apply to RT/2?

Regards
-Benoit-

Actual Config, so maybe you could point out where it got wrong:

support.pfadi.ch

Listen 157.161.6.15:443

<VirtualHost 157.161.6.15:443>
ServerAdmin woody@woody.ch
DocumentRoot /www/snch/rt2/WebRT/html/

ServerName support.scout.ch
ServerAlias support.pfadi.ch

SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:
+eNULL

SSLCertificateFile /www/snch/etc/support.scout.ch.crt
SSLCACertificateFile /www/snch/etc/scoutnet_ca.crt
SSLCertificateKeyFile /www/snch/etc/support.scout.ch.key

PerlModule Apache::DBI
PerlFreshRestart On
PerlRequire /www/snch/rt2/bin/webmux.pl
AddHandler fastcgi-script fcgi
#FastCgiServer /www/snch/rt2/bin/mason_handler.fcgi

SetHandler perl-script
PerlHandler RT::Mason
SetHandler fastcgi-script

LogFormat “%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"”
combined
errorLog /www/log/rt.pfadi.ch/error.log
CustomLog /www/log/rt.pfadi.ch/access.log combined
Alias /pics/ “/www/snch/php-include/layout/pics/”
ScriptAlias / /www/snch/rt2/bin/mason_handler.fcgi/

Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all


SPAM SPAM SPAM SPAM / Hormel’s new miracle meat in a can
Tastes fine, saves time. / If you want something grand, / Ask for SPAM!

  • Hormel’s 1937 jingle for SPAM

Second problem. I read that you have to run FastCGI if you want to run
multiple instances of RT in the same apache. Same problem here. Most docs are
about RT/3. Does this also apply to RT/2?

I wrote the original wiki about multiple instances. I have
no experience with RT/2, so that’s not included.

However, I’d be quite surprised if fastcgi were not required
for multiple instances in any version. The reason is that
fully independent instances require fully independent
perl code bases, at least in principle. Which is something
you can do with fastcgi, but not with mod_perl.

  bobg

Second problem. I read that you have to run FastCGI if you want to run
multiple instances of RT in the same apache. Same problem here. Most docs
are about RT/3. Does this also apply to RT/2?

I wrote the original wiki about multiple instances. I have
no experience with RT/2, so that’s not included.

However, I’d be quite surprised if fastcgi were not required
for multiple instances in any version. The reason is that
fully independent instances require fully independent
perl code bases, at least in principle. Which is something
you can do with fastcgi, but not with mod_perl.

Hi Bob

In the meantime I got fastcgi working on one of the instances. As soon as I
try to uncomment the second one, the whole thing get’s really messy (Apache
complaining about double definitions of functions from webmux.pl). It looks
like Apache 1.3.x cannot handle multple fastcgi server (especialy they cannot
be used inside a statement). So now I’m struggling with a
second apache instance (separate config file for a separate IP-Address) but
I’m stuck here:

error: mkdir /www/snch/pbsrt2/WebRT/data/obj/standard: Permission denied
at /usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Interp.pm line 590

Anybody an idea what went wrong? I even tryed to create or chmod 777 that
directory. I keep seing that error. Apparently it’s not FastCGI related as I
also get it when I comment out the fastcgi statements.

-Benoit-
SPAM SPAM SPAM SPAM / Hormel’s new miracle meat in a can
Tastes fine, saves time. / If you want something grand, / Ask for SPAM!

  • Hormel’s 1937 jingle for SPAM

Am Donnerstag, 3. M�rz 2005 17.28 schrieb Bob Goldstein:

Second problem. I read that you have to run FastCGI if you want to run
multiple instances of RT in the same apache. Same problem here. Most docs
are about RT/3. Does this also apply to RT/2?

I wrote the original wiki about multiple instances. I have
no experience with RT/2, so that’s not included.

However, I’d be quite surprised if fastcgi were not required
for multiple instances in any version. The reason is that
fully independent instances require fully independent
perl code bases, at least in principle. Which is something
you can do with fastcgi, but not with mod_perl.

Hi Bob

In the meantime I got fastcgi working on one of the instances. As soon as I
try to uncomment the second one, the whole thing get’s really messy (Apache
complaining about double definitions of functions from webmux.pl). It looks
like Apache 1.3.x cannot handle multple fastcgi server (especialy they cannot
be used inside a statement). So now I’m struggling with a

I don’t know about virtualhosts, since I don’t use them.

The reason is that I use ssl, and I don’t want to have
multiple certs, so my instances look like:
UIC Bluestem ID Server
UIC Bluestem ID Server

However, I definitely have multiple fastcgi statements for the
same helpdesk.uic.edu host. They look like this, more-or-less:

FastCgiServer /path/mason_handler_instance1.fcgi
ScriptAlias /instance1 /path/mason_handler_instance1.fcgi

FastCgiServer /path/mason_handler_instance2.fcgi
ScriptAlias /instance1 /path/mason_handler_instance2.fcgi

...

It is important that each FastCgiServer statement be given
a different argument. My guess is that’s true, even
if they are in different virtualhosts. In my case, the
mason_hander code is the same for all instances, so
I just make symlinks so as to have different names
to pass the FastCgiServer directive.

second apache instance (separate config file for a separate IP-Address) but
I’m stuck here:

error: mkdir /www/snch/pbsrt2/WebRT/data/obj/standard: Permission denied
at /usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Interp.pm line 590

Anybody an idea what went wrong? I even tryed to create or chmod 777 that
directory. I keep seing that error. Apparently it’s not FastCGI related as I
also get it when I comment out the fastcgi statements.

No good idea, unless the fastcgi uid doesn’t have privs
to create some caching directories where it wants to.

  bobg