Skip to main content.
home | support | download

Back to List Archive

Error with Swish-e using FastCGI (Win98/NT WS)

From: Carlos Vílchez Román <adm1(at)not-real.viabcp.com>
Date: Sun Jul 06 2003 - 20:43:15 GMT
Greetings (Sorry if this has been discussed already),

I have been working with Swish-E 2.2.3 with Apache 1.3.27 (Win98/NT WS) 
and it's great, but a little slow, so I try FastCGI:

First,  download FCGI.pm-0.64-win32-x86.zip from
http://fastcgi.com/dist/
install FCGI.pm file in  C:\Perl\site\lib
and the FCGI directory in C:\Perl\site\lib\auto
FCGI directory contains: FCGI.bs, FCGI.dll, FCGI.exp, FCGI.lib

Then download mod_fastcgi-2.4.0-AP1.dll and mod_fastcgi-2.4.0-AP2.so
and copy to C:\httpd\modules    <!-- Is that right?>

Later, configure the httpd.conf, adding the following:

-------------------------------------------------------------------

LoadModule  fastcgi_module modules/mod_fastcgi-2.4.0-AP1.dll
AddModule mod_fastcgi.c
ScriptAlias /fcgi-bin/ "C:/httpd/fcgi-bin/" 
<Directory "C:/httpd/fcgi-bin">
     AllowOverride None
     Options ExecCGI
     Order allow,deny
     Allow from all
     SetHandler fastcgi-script
</Directory>

<files "C:/httpd/fcgi-bin/swish.fcgi">
     Options ExecCGI
     Allow from all
     SetHandler fastcgi-script
</files>

AddHandler fastcgi-script .fcgi .fcg .fpl

-------------------------------------------------------------------

Finally rename the file swish.cgi --> swish.fcgi
Inside swish.fcgi add the line "use FCGI;", like this:

#!c:/perl/bin/perl
package SwishSearch;
use FCGI;
use strict;

Buth when execute the Swish-e from the HTML form, the 
Apache error log says:

[Sun Jul 06 11:07:02 2003] [crit] (120)Esta función sólo es válida en
modo Win32: FastCGI: can't exec server "c:/httpd/fcgi-bin/swish.fcgi",
CreateNamedPipe() failed
[Sun Jul 06 11:07:02 2003] [crit] (120)Esta función sólo es válida en
modo Win32: FastCGI: can't start (dynamic) server
"c:/httpd/fcgi-bin/swish.fcgi": spawn_fs_process() failed
[Sun Jul 06 11:07:12 2003] [crit] (120)Esta función sólo es válida en
modo Win32: FastCGI: can't exec server "c:/httpd/fcgi-bin/swish.fcgi",
CreateNamedPipe() failed
[Sun Jul 06 11:07:12 2003] [crit] (120)Esta función sólo es válida en
modo Win32: FastCGI: can't start (dynamic) server
"c:/httpd/fcgi-bin/swish.fcgi": spawn_fs_process() failed
[Sun Jul 06 11:07:26 2003] [notice] FastCGI: process manager initialized

Could anyone tell me where I am wrong?
Any suggestion would be appreciated.

Regards,

Carlos Vilchez
Received on Sun Jul 6 20:43:23 2003