[rt-devel] FastCGI and RT3

Matthew D Stock stock at cse.Buffalo.EDU
Tue Mar 18 09:39:08 EST 2003


Has anyone been successful getting FastCGI to work right out of the box
under Solaris?  Unless I make code changes, running mason_handler.fcgi
gives me:

copper {local/rt3/bin} % /usr/local/rt3/bin/mason_handler.fcgi
Can't locate /dev/fd/webmux.pl in @INC (@INC contains: /usr/local/lib/perl5/5.8.0/sun4-solaris /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl) at /dev/fd/3 line 28.
Exit 2

The problem appears to be that suidperl is given the perl script as
/dev/fd/3, and so you lose the original __FILE__ contents.
mason_handler.fcgi uses that to determine where to look for the webmux.pl
file.  If I hardcode the path into the script, things work just fine.

I haven't thought of a portable way of fixing this yet, but thought that
maybe someone else has.
  -Matt



More information about the Rt-devel mailing list