Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3271432
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:43:40+00:00 2026-05-17T18:43:40+00:00

I’ve achieved several partial successes, but can’t cross the last hurdle. Symptom: When in

  • 0

I’ve achieved several partial successes, but can’t cross the last hurdle.

Symptom: When in test mode FastCGI performs perfectly. When running plain perl scripts in eval or do mode it performs perfectly. As soon as I attempt to access the FCGI::Request() object or the CGI::Fast->new object, it hangs indefinitely. Here’s my config:

[Types]
fcgi=FCGI
cgi=FCGI
pl=FCGI
pm=FCGI

[FCGI]
ExePath=C:\perl\bin\perl.exe
;ExePath=C:\strawberry\perl\bin\perl.exe
Arguments="-MFCGI::IIS=eval"
;Arguments=d:\inetpub\cgi-bin\hello.fcgi
;Arguments=d:\inetpub\cgi-bin\h2.fcgi
ActivityTimeout=5
QueueLength=999
MaxInstances=20
InstanceMaxRequests=500

You can see the things I’ve tried referenced above with ;’s. Using ActiveState or Strawberry results in the same behavior. If I set the -MFCGI::IIS argument equal to “test”, it runs the tests perfectly. Eval, do, and no setting all hang indefinitely.

Most tellingly, if I set the Arguments = to a valid FCGI file (or .pl/.cgi/.pm) then that single script will run perfectly. The perl instance persists across calls precisely as it should, and it runs with advertised speed. The calls to the FCGI::Request() or CGI::Fast->new methods all return the objects they should. Everything is positively hunky dory, but that’s not the correct config. I have a raft of cgi files, and I’d have to create a separate mapping entry for each cgi file to make that ugly kludge work.

I suspect I’m missing a setting that causes the name of the script to be sent as an argument to perl, but I can’t see the param. Thanks for any help.

Edit: My suspicion is incorrect. FCGI is definitely calling the correct scripts, but it’s calling them with the wrong environment somehow. If I use the -MFCGI::IIS argument, I call exactly the same script as if I use the explicit path argument, but when I use the explicit path argument the scripts can find their libraries. My challenge is to get the scripts to identify their libraries correctly.

When using -MFCGI::IIS this script fails:

#!c:/perl/bin/perl
use CGI::Fast; 

The error is:

Error! 
Can't locate object method "FILENO" via package "FCGI::Stream" at 
C:/Perl/lib/CGI.pm line 822. 
Compilation failed in require at C:/Perl/lib/CGI/Fast.pm line 20. 
BEGIN failed--compilation aborted at C:/Perl/lib/CGI/Fast.pm line 20.
Compilation failed in require at (eval 4) line 4. 
BEGIN failed--compilation aborted at (eval 4) line 4.

When using an explicit script reference, this script succeeds completely. It maintains the same perl PID, maintains its count, and returns accurate values. Mostly, though, it can import its modules.

#!c:/perl/bin/perl -w
use strict; 

use CGI::Fast; 
my $count = 1; 
while (my $q = CGI::Fast->new) 
{ 
        print("Content-Type: text/plain\n\n"); 
        print("Process ID: $$; Count is: " . ++$count); 
} 

There has just got to be some ENV var I can set to make perl able to find its modules.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:43:40+00:00Added an answer on May 17, 2026 at 6:43 pm

    Microsoft reports their FastCGI tool is not tested with Perl. You can’t get there from here. On the other hand, you can make progress using IIS 7 and PerlEx30.dll. I had some luck with that before being called to another project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a jquery bug and I've been looking for hours now, I can't
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Does anyone know how can I replace this 2 symbol below from the string
I want to construct a data frame in an Rcpp function, but when I
I need to clean up various Word 'smart' characters in user input, including but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.