[rt-users] RT 3.8.10 and 4.0.1 in apache vritual hosts - possible?

Yan Seiner yan at seiner.com
Wed Aug 10 11:44:32 EDT 2011



On Wed, August 10, 2011 8:29 am, Thomas Sibley wrote:
> On 08/10/2011 11:18 AM, Yan Seiner wrote:
>> I'm finding that since FastCGI in apache is configured at the server level
>> and not at the virtual host level, and 3.8 and 4.0 use different
fastCGI handlers, I can get one running and not the other.
>>
>> I have the databases, paths, etc. straight.  I can enable one or the other
>> but not both; one always crashes with 500 - internal server error.
>>
>> Does anyone have any hints on how to make this work?  Or is it just
impossible?
>
> It's not impossible.  We did it with our internal RTs for a while. Don't
configure FastCGI at the server level, configure it at the vhost level. 
Show us some apache configs.
>
> You said you're installing from source, but previously you said you're
installing from Debian packages...

I could not sort out the Debian package install.  I got into a mess with
databases and ended up removing all the packages to see if I could do
better with the tarballs.

Right now I have RT4 running fine.  RT3 is throwing an error:

[Wed Aug 10 08:37:50 2011] [error] [client 10.1.14.15] failed to resolve
handler `RT::Mason': Can't locate RT/Mason.pm in @INC (@INC contains:
/opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib /etc/perl
/usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl . /etc/apache2) at (eval 1132) line 3.\n

which indicates a misconfiguration at the perl level.  make testdeps says
everything is OK.

RT3 virtual host:

root at svr-rt:/etc/apache2/sites-available# cat rt3
<VirtualHost *:80>
        ServerAdmin webmaster at localhost
    ServerName rt

    DocumentRoot /opt/rt3/share/html
    AddDefaultCharset UTF-8

    # optional apache logs for RT
    ErrorLog /opt/rt3/var/log/apache2.error
    TransferLog /opt/rt3/var/log/apache2.access

#    PerlRequire "/opt/rt3/bin/webmux.pl"
      SetHandler /opt/rt3/bin/mason_handler.fcgi
      AddHandler fastcgi-script fcgi
      ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

    <Location /NoAuth/images>
        SetHandler default
    </Location>
    <Location />
        SetHandler perl-script
        PerlResponseHandler RT::Mason
    </Location>
</VirtualHost>


RT4 Virtual Host

root at svr-rt:/etc/apache2/sites-available# cat rt4
<VirtualHost *:80>
        ServerAdmin webmaster at localhost
    ServerName tracker

    DocumentRoot /opt/rt4/share/html
    AddDefaultCharset UTF-8

    # optional apache logs for RT
    ErrorLog /opt/rt4/var/log/apache2.error
    TransferLog /opt/rt4/var/log/apache2.access

#    PerlRequire "/opt/rt4/bin/webmux.pl"
      SetHandler /opt/rt4/sbin/rt-server.fcgi
      AddHandler fastcgi-script fcgi
      ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/


    <Location /NoAuth/images>
        SetHandler default
    </Location>
    <Location />
Order allow,deny
Allow from all

AddDefaultCharset UTF-8

SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-server
</Location>

<Perl>
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
</Perl>
</VirtualHost>

I'm a bit rusty at all this stuff; my own apache server has been running
for years without a glitch and I'm just now coming back to this after a
few years away.  It's a re-learning curve....




-- 
My daughter is racing a triathlon to raise money for her swim club.  Want
to help?

http://akari.seiner.com





More information about the rt-users mailing list