Can you run RT on the same server as Twiki?

Hi there,

I am new to the group and hope to do my best to properly explain / scope the issue we are running into. I have had previous experience working with RT at my old company and am very very anxious to get it working for a demo to get buy in from upper management to replace vTiger support queue. Having said that, I only have one server available to me to run both Twiki and RT4. It turns that Twiki requires taint mode which means we need to run RT under Apache via mod_fastcgi or mod_fastcgid instead of mod_perl.

We used this as our guide for installation: Web deployment - RT 5.0.3 Documentation - Best Practical

So today when trying to get everything to work we receive the following error:

Error log /var/log/apache2/error.log

[notice] FastCGI: process manager initialized (pid 20507) [warn] FastCGI: server “/usr/share/request-tracker4/libexec/rt-server.fcgi” started (pid 20508) [notice] Apache/2.2.22 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 PHP/5.3.10-1ubuntu3.5 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 configured – resuming normal operations
[crit]: Something went wrong while trying to run RT’s standalone web server:
Can’t locate FCGI.pm in @INC (@INC contains: /usr/local/share/request-tracker4/lib /usr/share/request-tracker4/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Plack/Handler/FCGI.pm line 8.
BEGIN failed–compilation aborted at /usr/share/perl5/Plack/Handler/FCGI.pm line 8.
Compilation failed in require at /usr/share/perl5/Plack/Util.pm line 22. (/usr/share/request-tracker4/lib/RT.pm:351)

I have tried to include apache2-fastcgi.conf in /etc/apache2/sites-available and apache2.conf

also I tried in
<VirtualHost *:80>
### Optional apache logs for RT
# Ensure that your log rotation scripts know about these files
# ErrorLog /opt/rt4/var/log/apache2.error
# TransferLog /opt/rt4/var/log/apache2.access
# LogLevel debug

    AddDefaultCharset UTF-8

     Alias /rt/NoAuth/images/ /usr/share/request-tracker4/html/NoAuth/images
     ScriptAlias /rt /usr/share/request-tracker4/libexec/rt-server.fcgi

    <Location /rt>
        Order allow,deny
        Allow from all

        Options +ExecCGI
        AddHandler fastcgi-script fcgi
    </Location>

So I am at a loss as what to do next. Maybe the two can’t run on the same server? Any help / guidance would be appreciated.

FYI:

  • OS and version - Ubuntu 12.04
  • Memory - 1 GB
  • Disk - 10 GB
  • Processor - Intel(R) Xeon™ CPU 3.40GHz
  • Database and version - MySQL version 5.5.29
  • Apache version - Apache version 2.2.22

Thank you,
Sherri

[crit]: Something went wrong while trying to run RT’s standalone web server:

Can’t locate FCGI.pm in @INC (@INC contains:
/usr/local/share/request-tracker4/lib /usr/share/request-tracker4/lib
/etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl .) at /usr/share/perl5/Plack/Handler/FCGI.pm
line 8.

You need to install the FCGI Perl module. Since you appear to be using
the Ubuntu packages and the system perl, try this:

apt-get install libfcgi-perl

It should have been installed when you installed the Ubuntu package,
since request-tracker4 depends on libhtml-mason-perl which depends on
libfcgi-perl.

RT’s standard configure script during a tarball install has an
–with-web-handler=fastcgi to ensure this dep is present.

So I am at a loss as what to do next. Maybe the two can’t run on the
same server? Any help / guidance would be appreciated.

They can run just fine together, however:

FYI:

  • OS and version - Ubuntu 12.04
  • Memory - 1 GB
  • Disk - 10 GB
  • Processor - Intel(R) Xeon™ CPU 3.40GHz
  • Database and version - MySQL version 5.5.29
  • Apache version - Apache version 2.2.22

That’s a tiny amount of memory for an RT server which also hosts the
database on the same machine. You’ll want to tune MySQL and Apache so
they can’t swap death.

Hi Thomas

That worked! Thank you so much! Now we only have to worry about trying to configure fetchmail config!

We will def make the changes to the memory - we have been so focused on the fact that we could not even get them running together that we have not evaluated it yet.

Thank you again.
Sherri

Message: 10Date: Tue, 02 Jul 2013 12:04:04 -0700
From: Thomas Sibley trs@bestpractical.com
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Can you run RT on the same server as Twiki?
Message-ID: 51D32424.9060809@bestpractical.com
Content-Type: text/plain; charset=UTF-8

[crit]: Something went wrong while trying to run RT’s standalone web server:

Can’t locate FCGI.pm in @INC (@INC contains:
/usr/local/share/request-tracker4/lib /usr/share/request-tracker4/lib
/etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14
/usr/share/perl/5.14 /usr/local/lib/site_perl .) at
/usr/share/perl5/Plack/Handler/FCGI.pm
line 8.

You need to install the FCGI Perl module. Since you appear to be using the Ubuntu packages and the system perl, try this:

apt-get install libfcgi-perl

It should have been installed when you installed the Ubuntu package, since request-tracker4 depends on libhtml-mason-perl which depends on libfcgi-perl.

RT’s standard configure script during a tarball install has an --with-web-handler=fastcgi to ensure this dep is present.

So I am at a loss as what to do next. Maybe the two can?t run on the
same server? Any help / guidance would be appreciated.

They can run just fine together, however:

FYI:

  • OS and version - Ubuntu 12.04
  • Memory - 1 GB
  • Disk - 10 GB
  • Processor - Intel(R) Xeon™ CPU 3.40GHz
  • Database and version - MySQL version 5.5.29
  • Apache version - Apache version 2.2.22

That’s a tiny amount of memory for an RT server which also hosts the database on the same machine. You’ll want to tune MySQL and Apache so they can’t swap death.