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:

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/
/usr/local/RT/share/html/NoAuth/images/

SetHandler fastcgi-script

Any ideas what is going on or how to debug?

Cheers
David

Any help

Yahoo! Messenger - Communicate instantly…"Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html

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

Good luck!
SL

LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiIpcDir /tmp/fastcgi

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
    </Location>

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com]On Behalf Of David
Hugh-Jones
Sent: Thursday, April 29, 2004 1:18 PM
To: rt-users@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:

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/
/usr/local/RT/share/html/NoAuth/images/

SetHandler fastcgi-script

Any ideas what is going on or how to debug?

Cheers
David

Any help

Yahoo! Messenger - Communicate instantly…"Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Developer and Administrator training is coming to LA, DC and Frankfurt this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

The attached one looks like it has remnants of the mod_perl stuff in
there. Mine is even less complex since it is strictly FastCGI (Apache2
with FastCGI):

LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiIpcDir /var/log/httpd/fastcgi
AddHandler fastcgi-script fcg fcgi fpl



FastCgiServer /var/www/html/adm.wesmo.com/rt3/bin/mason_handler.fcgi
ScriptAlias /rt3 /var/www/html/adm.wesmo.com/rt3/bin/mason_handler.fcgi/

Hope this helps…

-Rich

perl 5.6.1 (I can’t change it, remember)

This will end up causing countless problems. Perhaps you can build
your own perl in your homedir?

seph

Hi Guys

Thanks very much for your helpful examples. My problem
is that the output of mason_handler.fcgi is being
redirected to the Apache error log rather than sent to
the browser. Can you think what might be causing this?
Is there a way to debug it?

David

attached one looks like it has remnants of the

mod_perl stuff in
there. Mine is even less complex since it is
strictly FastCGI (Apache2
with FastCGI):

LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiIpcDir /var/log/httpd/fastcgi
AddHandler fastcgi-script fcg fcgi fpl



FastCgiServer

/var/www/html/adm.wesmo.com/rt3/bin/mason_handler.fcgi

ScriptAlias /rt3

/var/www/html/adm.wesmo.com/rt3/bin/mason_handler.fcgi/

Hope this helps…

-Rich

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

Good luck!
SL

LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiIpcDir /tmp/fastcgi

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
   </Location>

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com]On
Behalf Of David
Hugh-Jones
Sent: Thursday, April 29, 2004 1:18 PM
To: rt-users@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:

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/
/usr/local/RT/share/html/NoAuth/images/

SetHandler fastcgi-script

Any ideas what is going on or how to debug?

Cheers
David

Any help

Yahoo! Messenger - Communicate instantly…"Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html

I am unable to connect to the rt web interface. I see this in my
http/error_log.
FastCGI: comm with server “/opt/rt3/bin/mason_handler.fcgi” aborted

I am also seeing
client [1.2.3.4] FastCGI: incomplete headers received from server
"/opt/rt3/bin/mason_handler.fcgi" aborted

Whats happening?

Rick Garland
UNIX System Administrator

Evolving Systems, Inc
9777 Mount Pyramid Court
Suite 100
Englewood, CO 80112

phone: 303-802-2580
cell: 720-210-4671
rick.garland@evolving.com

This e-mail and any attachments may be confidential and/or legally privileged. If you have received this e-mail and you are not a named addressee, please inform Evolving Systems TIS at tis@evolving.com and then delete the e-mail from your system. If you are not a named addressee you must not use, disclose, distribute, copy, print or rely on this e-mail. To ensure regulatory compliance and for the protection of our clients and business, Evolving Systems may monitor and read e-mails sent to and from its servers. Although Evolving Systems routinely screens for viruses, addressees should scan this e-mail and any attachments for viruses. Evolving Systems makes no representation or warranty as to the absence of viruses in this e-mail or any attachments.

Registered Office: 9777 Pyramid Ct Suite 100, Englewood, CO 80112