[rt-devel] FastCGI: can't use undefined value as filehandle reference

Feargal Reilly feargal at helgrim.com
Wed Oct 24 08:09:08 EDT 2001


Hi,
I'm playing with fastcgi, but I'm getting an internal server error.

Logs say:
Can't use an undefined value as filehandle reference at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/FCGI.pm line 75.
BEGIN failed--compilation aborted at /usr/libdata/perl/5.00503/CGI/Fast.pm line 22.
BEGIN failed--compilation aborted at /usr/local/rt2/bin/mason_handler.fcgi line 86.
[Wed Oct 24 10:58:48 2001] [warn] FastCGI: server "/usr/local/rt2/bin/mason_handler.fcgi" (pid 91013) terminated by calling exit with status '255'
[Wed Oct 24 10:58:50 2001] [warn] FastCGI: server "/usr/local/rt2/bin/mason_handler.fcgi" restarted (pid 91014)

Apache directives:
AddHandler fastcgi-script .fcgi
FastCgiServer /usr/local/rt2/bin/mason_handler.fcgi

ScriptAlias /rttest/ /usr/local/rt2/bin/mason_handler.fcgi/

I'm not running a virtual host.

I think this may actually be a problem with FCGI.pm, as the following script:
#!/usr/bin/perl
use CGI::Fast;

gives the following error:
Can't use an undefined value as filehandle reference at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/FCGI.pm line 75.
BEGIN failed--compilation aborted at /usr/libdata/perl/5.00503/CGI/Fast.pm line 22.
BEGIN failed--compilation aborted at test line 2.

I'm using FCGI-0.64, mod_fastcgi_2.2.10, apache_1.3.22, perl 5.005_03, FreeBSD 4.1-STABLE.
mod_fastcgi is compiled into apache.

Any ideas if I'm doing something wrong with the config, or do I have a screwed fcgi installation?

Cheers,
-Feargal.




More information about the Rt-devel mailing list