[rt-devel] RT3, FastCgi, and Solaris

Michael K. Brown michael.k.brown at alcatel.com
Tue Mar 18 11:10:08 EST 2003


Hi Matt!

I'm having the same problem with Solaris 8 and FastCGI, freshly compiled
apache.  You're not the only one!

Hope somebody can help us out!

/Mike


Matt said:
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