<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'fastCGI perl CGI'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=fastCGI+perl+CGI&amp;orTags=0</link><description>Search results matching tag 'fastCGI perl CGI'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>IIS 5.1 or IIS 6.0, FastCGI and Perl Configuration that Works.</title><link>http://forums.iis.net/p/1151604/1878815.aspx#1878815</link><pubDate>Tue, 09 Sep 2008 00:53:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878815</guid><dc:creator>digitalhack</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;After spending a good bit of time with Google and through trial and error I have found a configuration that appears to support perl using FastCGI on IIS 5.1 and IIS 6.0 using MS&amp;#39;s FastCGI Extension for IIS6.0.&amp;nbsp; I have tested it out on a limited basis using both IIS 5.1 on WinXp and IIS 6.0 on a virtual machine copy of Windows 2003 Server running on top of WinXP.&lt;/p&gt;
&lt;p&gt;With this setup you setup a specific perl routine to run every time a URL with a specific extension is entered.&amp;nbsp; What use this is I will leave up to you to decide. &lt;/p&gt;
&lt;p&gt;A good description of how to configure FastCGI that focuses on PHP:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://learn.iis.net/page.aspx/248/configuring-fastcgi-extension-for-iis60/"&gt;http://learn.iis.net/page.aspx/248/configuring-FastCGI-extension-for-iis60/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here are the steps that I took to make it work with perl.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;1. Configure IIS on both platforms using the default choices.&lt;/li&gt;
&lt;li&gt;2. Download and install ActivePerl 5.8.8.824 using the msi installer and the default choices. Downloaded from: &lt;a href="http://www.activestate.com/store/download_file.aspx?binGUID=45107672-7d2c-4529-85be-4aad89bcd59c"&gt;http://www.activestate.com/store/download_file.aspx?binGUID=45107672-7d2c-4529-85be-4aad89bcd59c&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;3. Using the ppm utility from ActivePerl install the FCGI module from the ActiveState PPM repository.&lt;/li&gt;
&lt;li&gt;4. Download and install FastCGI using default options. Downloaded from: &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=2d481579-9a7c-4632-b6e6-dee9097f9dc5&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=2d481579-9a7c-4632-b6e6-dee9097f9dc5&amp;amp;displaylang=en&lt;/a&gt; and check to make sure fcgiconfig.js, fcgiext.dll and fcgiext.ini were all present in c:\windows\system32\inetsrv.&lt;/li&gt;
&lt;li&gt;5. In &amp;quot;Local Security Settings&amp;quot; under &amp;quot;User Rights Assignment&amp;quot; add the &amp;quot;Network Service&amp;quot; to &amp;quot;Access this computer from the network&amp;quot;. This took me a while to figure out. Now I need to think about potential side effects.&lt;/li&gt;
&lt;li&gt;6. Using the Internet Information Services manager program:&lt;/li&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a. Select properties for the &amp;quot;Default Web Site&amp;quot; and then go to the &amp;quot;Home Directory&amp;quot; tab and select &amp;quot;Configuration...&amp;quot; to get &amp;quot;Application Configuration&amp;quot; window.&lt;/li&gt;
&lt;li&gt;b. Select &amp;quot;Add&amp;quot; to get the &amp;quot;Add/Edit Application Mapping&amp;quot; window.&lt;/li&gt;
&lt;li&gt;c. Under &amp;quot;Executable:&amp;quot; browse to c:\windows\ststem32\inetsrv\fcgiext.dll and select it.&lt;/li&gt;
&lt;li&gt;d. Once back at the &amp;quot;Add/Edit Application Mapping&amp;quot; select the value in the &amp;quot;Executable:&amp;quot; window. If you don&amp;#39;t do this you will never be able to select &amp;quot;OK&amp;quot;. See &lt;a href="http://support.microsoft.com/kb/317948"&gt;http://support.microsoft.com/kb/317948&lt;/a&gt; for further details.&lt;/li&gt;
&lt;li&gt;e. Type in .fcgi into the &amp;quot;Extension&amp;quot; field.&lt;/li&gt;
&lt;li&gt;f. Check to make sure the &amp;quot;Script Engine&amp;quot; box is checked&lt;/li&gt;
&lt;li&gt;g. The documentation says that &amp;quot;File Exists&amp;quot; must be checked but based on initial tests this is not the case.&lt;/li&gt;
&lt;li&gt;h. Press OK.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;li&gt;7. Using the Services I restart the &amp;quot;World Wide Web Publishing&amp;quot; service. &lt;/li&gt;
&lt;li&gt;8. Edit fcgiext.ini to include the lines below at the bottom. Note that what this is going to do is run the perl routine in printenv.fcgi every time you enter anything with an &amp;quot;.fcgi&amp;quot; extension. If you have not selected the checked the &amp;quot;File Exists&amp;quot; above then there will be no checking to make sure the file even exists.&lt;/li&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;code&gt;&lt;pre&gt;[Types] 

fcgi=fcgi 

[fcgi] 

ExePath=c:\perl\bin\perl.exe 
Arguments=c:\inetpub\wwwroot\printenv.fcgi &lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/code&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;
&lt;li&gt;9. Placed printenv.fgci into the c:\inetpub\wwwroot directory.&lt;/li&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;code&gt;&lt;pre&gt;use FCGI; 

while (FCGI::accept() == 0) {
  print &amp;quot;Content-type: text/html\r\n\r\n&amp;quot;;
  while (($key, $val) = each %ENV) { 
    print &amp;quot;$key = $val\n&amp;quot;;
   } 
} &lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/ul&gt;
&lt;p&gt;At this point printenv.fcgi will run every time you enter the following URL &lt;a href="http://yourserver.domain.com/printenv.fcgi"&gt;http://yourserver.domain.com/printenv.fcgi&lt;/a&gt;. &amp;nbsp;Again note if you have not selected &amp;quot;File Exits&amp;quot; when you setup the application mapping no checking to see if the file on the URL actually exists.&amp;nbsp; In this case &lt;a href="http://yourserver.domain.com/mydir/test.fcgi"&gt;http://yourserver.domain.com/mydir/test.fcgi&lt;/a&gt;&amp;nbsp;will also run printenv.fcgi.&lt;/p&gt;
&lt;p&gt;I hope this helps,&lt;/p&gt;
&lt;p&gt;digitalhack&lt;/p&gt;</description></item><item><title>Re: FastCGI Perl</title><link>http://forums.iis.net/p/1107796/1876072.aspx#1876072</link><pubDate>Wed, 06 Aug 2008 17:20:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1876072</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;Has anyone succeeded with setting up Perl on IIS with FastCGI by following this guide? I have followed this guide but keep getting this error message when I make a request to any perl script:&lt;/p&gt;
&lt;p&gt;Error! Can&amp;#39;t locate object method &amp;quot;FILENO&amp;quot; via package &amp;quot;FCGI::Stream&amp;quot; at C:/Perl/lib/CGI.pm line 794. Compilation failed in require at C:/Perl/lib/CGI/Fast.pm line 18. BEGIN failed--compilation aborted at C:/Perl/lib/CGI/Fast.pm line 18. Compilation failed in require at (eval 3) line 3. BEGIN failed--compilation aborted at (eval 3) line 3. &lt;/p&gt;</description></item><item><title>IIS6 - Perl - Network connections (SMTP, IO::Socket)</title><link>http://forums.iis.net/p/1147040/1859518.aspx#1859518</link><pubDate>Wed, 21 Nov 2007 02:18:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1859518</guid><dc:creator>hreldelmyer2</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>I have fastcgi working with II6 and Perl on Windows Server 2003. However, my Perl scripts are unable to make network connections (e.g. SMTP or any IO::Socket call). Is there some configuration or security setting I need to be making to enable this?&lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;br /&gt;Horace</description></item><item><title>ODBC Connection to SQL Server Fails - Perl, Fastcgi, IIS 6, Windows Server 2003, 64 bit</title><link>http://forums.iis.net/p/1146825/1858691.aspx#1858691</link><pubDate>Fri, 02 Nov 2007 12:33:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1858691</guid><dc:creator>hreldelmyer</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;My Perl program connects to SQL SERVER via ODBC without any trouble&amp;nbsp; from the comand line and straight CGI, but it fails with the latest fastcgi downloads:&lt;/p&gt;&lt;p&gt;DBI connect(&amp;#39;XXX5_client_user1&amp;#39;,&amp;#39;XXX&amp;#39;,...) failed: [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]General network error. Check your network documentation. (SQL-08001)&lt;br /&gt;[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionOpen (Connect()). (SQL-01000)(DBD: db_login/SQLConnect err=-1) at D:/User/XXX5_client/lib/DB/DBI.pm line 156&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I assume that it is some sort of permissions problem. Is fastcgi running as the user specified in the identity of the worker process? If not, where can the user id be changed?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Note that tests of my program without attempting database connections work fine.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Does windows server / IIS require that additional permissions be given to the account that is running the script?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Horace&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Support for PERL CGI::Fast</title><link>http://forums.iis.net/p/1044468/1484961.aspx#1484961</link><pubDate>Mon, 04 Dec 2006 11:19:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1484961</guid><dc:creator>darknos</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;P&gt;I'm very interesing in fastCGI support for PERL application. Please include it in your test matrix. I think there are a lot of interested people since ActiveState PerlEx project was closed (I even don't know a reason)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>