<?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 'Perl'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=Perl&amp;orTags=0</link><description>Search results matching tag 'Perl'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>IIS6: IIS output duplicated response headers for perl CGI</title><link>http://forums.iis.net/p/1162430/1923792.aspx#1923792</link><pubDate>Sat, 07 Nov 2009 21:44:35 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923792</guid><dc:creator>mmpower</dc:creator><cs:applicationKey>troubleshooting--1</cs:applicationKey><description>&lt;p&gt;Our perl CGI scripts output response headers repeately which were inserted into the output html contents. a sample code:&lt;/p&gt;&lt;p&gt;&lt;i&gt;use strict;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;use CGI;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;$|=1; &lt;br /&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;my $q = new CGI();&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;print $q-&amp;gt;header(&amp;quot;text/html&amp;quot;), $q-&amp;gt;start_html(&amp;quot;test&amp;quot;);&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;print &amp;quot;aa&amp;quot;;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;print $q-&amp;gt;end_html ;&lt;/i&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;outputs the following on browser:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;i&gt;&lt;span id=":67"&gt;HTTP/1.1 200 OK Connection: close Date: Sat, 07 Nov 2009 21:34:27 GMT &amp;nbsp;Content-Type: text/html; charset=ISO-8859-1 Server: Microsoft-IIS/6.0 aaHTTP/1.1 &amp;nbsp;200 OK Connection: close Date: Sat, 07 Nov 2009 21:34:27 GMT Content-Type: &amp;nbsp;text/html; charset=ISO-8859-1 Server: Microsoft-IIS/6.0&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;if I remove the line &amp;quot;$|=1&amp;quot;, then it outputs:&lt;/p&gt;&lt;p&gt;&lt;i&gt;aa&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If I run the script above from command line, it also outputs:&lt;/p&gt;&lt;p&gt;&lt;i&gt;aa&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;seems everytime the script output something, IIS always automatically append the same response header to the output. So if I change the above script to:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;i&gt;use strict;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;use CGI;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;$|=1; &lt;br /&gt;
&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;my $q = new CGI();&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;print $q-&amp;gt;header(&amp;quot;text/html&amp;quot;), $q-&amp;gt;start_html(&amp;quot;test&amp;quot;);&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;print &amp;quot;&amp;lt;br&amp;gt;aa&amp;quot;;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;print &amp;quot;&amp;lt;br&amp;gt;bb&amp;lt;br/&amp;gt;&amp;quot;;&lt;/i&gt;&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;&lt;i&gt;print $q-&amp;gt;end_html ;&lt;/i&gt;&lt;p&gt;&amp;nbsp;it now outputs the following on browser:&lt;/p&gt;&lt;p&gt;&lt;i&gt;&amp;nbsp;&lt;span id=":r6"&gt;HTTP/1.1 200 OK Connection: close Date: Sat, 07 Nov 2009 21:41:32 GMT &amp;nbsp;Content-Type: text/html; charset=ISO-8859-1 Server: Microsoft-IIS/6.0 &amp;nbsp;&lt;br /&gt;aa&lt;br /&gt;bb&lt;br /&gt;HTTP/1.1 200 OK Connection: close Date: Sat, 07 Nov 2009 &amp;nbsp;21:41:32 GMT Content-Type: text/html; charset=ISO-8859-1 Server: &amp;nbsp;Microsoft-IIS/6.0 &lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;did anybody experience the same issue? how do I fix this?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;the server is windows 2003 std with service pack 1, running IIS 6.0. same script runs ok on other server that has the same version of software running. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;--mmpower &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Perl and the Web Platform Installer</title><link>http://forums.iis.net/p/1162264/1923039.aspx#1923039</link><pubDate>Mon, 02 Nov 2009 08:46:18 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923039</guid><dc:creator>Mike__B</dc:creator><cs:applicationKey>web_platform_installer-52</cs:applicationKey><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;I was just demonstrated the Web Platform Installer on the WordCamp NL last weekend and I think it is a really great solution.&lt;/p&gt;&lt;p&gt;I work for an open source ticketing product which uses Perl and am looking for how to create the best experience for our (30%) Windows users. Currently we have a strawberry perl/apache/mysql installer with NSIS but it is cumbersome to maintain and not the nicest. We have users running IIS, but they did an ActiveState installation and installed our system on top of that. Not very convenient.&lt;/p&gt;&lt;p&gt;The Web Platform Installer sure looks great, but the trouble is that as far as I can see there is no way to install binaries (perl) with the Platform Installer at the moment, right? So if I don&amp;#39;t use .Net or PHP this is not an option for me?&lt;/p&gt;&lt;p&gt;I was thinking of maybe providing a hybrid solution for now, and wanted to hear your thoughts or ideas:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&amp;#39;regular&amp;#39; installer that&amp;nbsp; sets up Perl with IIS (either Strawberry Perl, http://strawberryperl.com, or a self-compiled perl) with all the modules we need for the product&lt;/li&gt;&lt;li&gt;use the web platform installer to do set up and configure the web app, database and such.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I&amp;#39;d really like to receive your feedback to hear whether or not this is a feasible solution.&lt;br /&gt;&lt;br /&gt;Regards,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Mike &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: IIS7 and ActivePerl.</title><link>http://forums.iis.net/p/1159767/1913410.aspx#1913410</link><pubDate>Thu, 13 Aug 2009 04:45:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1913410</guid><dc:creator>mailant</dc:creator><cs:applicationKey>iis7_-_setup__migration-41</cs:applicationKey><description>&lt;p&gt;Wade wrote a blog describing how to&amp;nbsp;get&amp;nbsp;ActivePerl working with IIS&amp;nbsp;at &lt;a href="http://blogs.iis.net/wadeh/archive/2009/04/13/running-perl-on-iis-7.aspx"&gt;http://blogs.iis.net/wadeh/archive/2009/04/13/running-perl-on-iis-7.aspx&lt;/a&gt;. Hope that helps!&lt;/p&gt;</description></item><item><title>parser project needs perl/C/C++ programmer</title><link>http://forums.iis.net/p/1156129/1897362.aspx#1897362</link><pubDate>Thu, 19 Mar 2009 13:42:07 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1897362</guid><dc:creator>cpp2ouser</dc:creator><cs:applicationKey>general_discussion-51</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;&amp;nbsp; I&amp;#39;d like to know if anyone of you would be interested in being payed ($$$) to program a BNF like parser.&lt;br /&gt;Intermediate to advanced programmer skills required because the project deals allot with pointers and memory updates and&lt;br /&gt;inter-mixes c/c++/perl code. Anyone interested visit &lt;a href="http://www.angelfire.com/cppcode/blog/spec_0.txt"&gt;http://www.angelfire.com/cppcode/blog/spec_0.txt&lt;/a&gt; for futher details&lt;/p&gt;
&lt;p&gt;&lt;a href="mailto:cvv3@yahoo.com"&gt;cvv3@yahoo.com&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>FastCGI/Perl/IIS debugging nightmare with error -2147467259</title><link>http://forums.iis.net/p/1152698/1883270.aspx#1883270</link><pubDate>Wed, 29 Oct 2008 19:27:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1883270</guid><dc:creator>morungos</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve been working for days trying to get a Catalyst-based Perl application running under FastCGI/IIS. So far, it seems like a total black box. I know it is possible, as a trivial FCGI script works OK - the question is: all the error I ever get, no matter what else I try, is:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Error Details:&lt;/p&gt; 
&lt;ul&gt;&lt;li&gt;The FastCGI process exited unexpectedly&lt;/li&gt;&lt;li&gt;Error Number: -2147467259 (0x80004005).&lt;/li&gt;&lt;li&gt;Error Description: Unspecified error&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;This is not particularly helpful. There are about a million possible problems, many but not all involving permissions. The same app works fine under CGI, but we really need the performance of FastCGI - PerlIS is not an option as we need better caching than just caching the interpreter, and ActivePerl has unresolved memory leaks too. We have a good Perl, and all works well until we try to get it working with IIS. Also, the Catalyst FastCGI script appears to work just fine under the command line. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;What I could really use is some tricks to get some kind of error message out of FastCGI. Any kind of error message other than the above will do. Is there any way of persuading IIS to give me a bit more feedback? We&amp;#39;re using IIS6, Perl 5.10 (several different builds, same problems). The framework is Catalyst and I know this is likely an issue - but I cannot find how without some debugging feedback of some kind. &lt;/p&gt;&lt;p&gt;Any help would be very welcome. FastCGI seems perfect in principle, but deployment is currently a non-starter&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><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>Webalizer (stone steps) for IIS6.0 -ADSI Perl Script - automatic generation of Web Stats</title><link>http://forums.iis.net/p/1148332/1865025.aspx#1865025</link><pubDate>Mon, 10 Mar 2008 15:47:55 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1865025</guid><dc:creator>pilio</dc:creator><cs:applicationKey>configuration__scripting--1</cs:applicationKey><description>
&lt;p&gt;For those of you who want to produce Web statistics for IIS6.0, i have created a perl script which parses iis6.0 and produces stats for every virtual server. The script runs once everyday.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;br /&gt;I use Stone Steps webalizer. An improved version of webalizer ( http://www.stonesteps.ca/&amp;nbsp; )&lt;br /&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;See just below the script;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;#!c:\perl\bin\perl&lt;br /&gt;&amp;nbsp;&lt;br /&gt;use Win32;&lt;br /&gt;use Win32::OLE;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;$pattern=&amp;quot;vivodi_customers&amp;quot;;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;$template_conf=&amp;quot;c:\\opt\\vivodi\\Webalizer_Stats\\webalizer_template.conf&amp;quot;;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;$thetime=time-86400;&lt;br /&gt;@timedata=localtime($thetime);&lt;br /&gt;&amp;nbsp;&lt;br /&gt;$thesec=$timedata[0];&lt;br /&gt;$themin=$timedata[1];&lt;br /&gt;$thehour=$timedata[2];&lt;br /&gt;$theday=$timedata[3];&lt;br /&gt;$themonth=$timedata[4];&lt;br /&gt;$themonth++;&lt;br /&gt;$theyear=$timedata[5];&lt;br /&gt;$theyear=$theyear-100;&lt;br /&gt;#$theyear+=2000;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;if ($thesec&amp;lt;10) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $thesec=&amp;quot;0$thesec&amp;quot;;&lt;br /&gt;}&lt;br /&gt;if ($themin&amp;lt;10) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $themin=&amp;quot;0$themin&amp;quot;;&lt;br /&gt;}&lt;br /&gt;if ($thehour&amp;lt;10) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $thehour=&amp;quot;0$thehour&amp;quot;;&lt;br /&gt;}&lt;br /&gt;if ($theday&amp;lt;10) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $theday=&amp;quot;0$theday&amp;quot;;&lt;br /&gt;}&lt;br /&gt;if ($themonth&amp;lt;10) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $themonth=&amp;quot;0$themonth&amp;quot;;&lt;br /&gt;}&lt;br /&gt;if ($theyear&amp;lt;10) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $theyear=&amp;quot;0$theyear&amp;quot;;&lt;br /&gt;}&lt;br /&gt;&amp;nbsp;&lt;br /&gt;$thedate=$theyear.$themonth.$theday;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;print&amp;quot;==&amp;gt;$thedate\n&amp;quot;;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;$ALL_OBJECTS = Win32::OLE-&amp;gt;GetObject(&amp;#39;IIS://&amp;#39; . &amp;#39;localhost&amp;#39; . &amp;#39;/W3SVC&amp;#39;);&lt;br /&gt;foreach my $object (in $ALL_OBJECTS) {&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; if (($object-&amp;gt;Class eq &amp;#39;IIsWebServer&amp;#39;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $w3svc_num=$object-&amp;gt;name;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $objIIS = Win32::OLE-&amp;gt;GetObject(&amp;quot;IIS://localhost/W3SVC/&amp;quot;.$w3svc_num);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ph=$objIIS-&amp;gt;{&amp;quot;ServerComment&amp;quot;};&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $logs=$objIIS-&amp;gt;{LogFileDirectory} ;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; undef $objIIS;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $objIIS = Win32::OLE-&amp;gt;GetObject(&amp;quot;IIS://localhost/W3SVC/&amp;quot;.$w3svc_num.&amp;#39;/Root&amp;#39;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $path=$objIIS-&amp;gt;{Path};&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; undef $objIIS;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # print &amp;quot;=&amp;gt;$ph , &amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # print &amp;quot;$path - &amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # print &amp;quot;$logs&amp;quot;.&amp;quot;\\&amp;quot;.&amp;quot;W3SVC&amp;quot;.$w3svc_num.&amp;quot;\\ex&amp;quot;.$thedate.&amp;quot;.log&amp;quot;.&amp;quot;\n&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $logs_str=&amp;quot;$logs&amp;quot;.&amp;quot;\\&amp;quot;.&amp;quot;W3SVC&amp;quot;.$w3svc_num.&amp;quot;\\ex&amp;quot;.$thedate.&amp;quot;.log&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $webalizer_cmd=&amp;quot;C:\\opt\\vivodi\\Webalizer_Stats\\webalizer_win_3_1_2_6\\webalizer_win_3_1_2_6\\webalizer.exe -c $template_conf $logs_str -o $path\\statistics -n $ph&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!(-d &amp;quot;$path\\statistics&amp;quot;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;quot;=&amp;gt;....$path ---$pattern\n&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($path =~ m/$pattern/io) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; system &amp;quot;mkdir $path\\statistics&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;quot;$webalizer_cmd\n&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; system ($webalizer_cmd);&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; }#endif&lt;br /&gt;&amp;nbsp;&lt;br /&gt;}#endforeach&lt;br /&gt;&amp;nbsp;&lt;br /&gt;undef $ALL_OBJECTS;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Best Regards,&lt;/p&gt;

&lt;p&gt;Panagiotis Iliopoulos&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://panagiotis-iliopoulos.blogspot.com/" title="Opensource IT Security Solutions"&gt;http://panagiotis-iliopoulos.blogspot.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;br /&gt;&lt;br /&gt;

</description></item><item><title>Perl on IIS 7</title><link>http://forums.iis.net/p/1148010/1863767.aspx#1863767</link><pubDate>Sat, 16 Feb 2008 18:32:32 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1863767</guid><dc:creator>hoyty</dc:creator><cs:applicationKey>iis7_-_configuration__scripting-41</cs:applicationKey><description>&lt;p&gt;I have tried to read other posts on this issue and followed those instructions however I am still not working.&amp;nbsp; My end goal is to get ActivePerl working on W2K8/IIS7 for Movable Type.&amp;nbsp; My server is 64 bit but I am running the 32 bit version of Perl since it appears the 64 bit one isn&amp;#39;t quite ready yet.&amp;nbsp; I have IIS with CGI installed.&amp;nbsp; After the Perl install I went into IIS Manager and did the following on the Default Web Site:&lt;/p&gt;
&lt;p&gt;Add Script Map&lt;br /&gt;*.cgi&lt;br /&gt;c:\Perl\bin\perl.exe &amp;quot;%s&amp;quot; %s&lt;br /&gt;CGI Script Map&lt;br /&gt;I clicked Yes to allow exception.&lt;br /&gt;&lt;br /&gt;*.pl&lt;br /&gt;c:\Perl\bin\perl.exe &amp;quot;%s&amp;quot; %s&lt;br /&gt;Perl Script Map&lt;br /&gt;I clicked Yes to allow exception.&lt;/p&gt;
&lt;p&gt;I get this now:&lt;/p&gt;
Error Summary
&lt;h2&gt;HTTP Error 404.3 - Not Found&lt;/h2&gt;
&lt;h3&gt;The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.&lt;/h3&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class="content-container"&gt;
Detailed Error Information
&lt;div id="details-left"&gt;
&lt;table class="" cellspacing="0" cellpadding="0"&gt;

&lt;tr class="alt"&gt;
&lt;th class=""&gt;Module&lt;/th&gt;
&lt;td class=""&gt;StaticFileModule&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th class=""&gt;Notification&lt;/th&gt;
&lt;td class=""&gt;ExecuteRequestHandler&lt;/td&gt;&lt;/tr&gt;
&lt;tr class="alt"&gt;
&lt;th class=""&gt;Handler&lt;/th&gt;
&lt;td class=""&gt;StaticFile&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th class=""&gt;Error Code&lt;/th&gt;
&lt;td class=""&gt;0x80070032&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;div id="details-right"&gt;
&lt;table class="" cellspacing="0" cellpadding="0"&gt;

&lt;tr class="alt"&gt;
&lt;th class=""&gt;Requested URL&lt;/th&gt;
&lt;td class=""&gt;https://localhost:443/MT/mt-check.cgi&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th class=""&gt;Physical Path&lt;/th&gt;
&lt;td class=""&gt;C:\inetpub\wwwroot\MT\mt-check.cgi&lt;/td&gt;&lt;/tr&gt;
&lt;tr class="alt"&gt;
&lt;th class=""&gt;Logon Method&lt;/th&gt;
&lt;td class=""&gt;Anonymous&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th class=""&gt;Logon User&lt;/th&gt;
&lt;td class=""&gt;Anonymous&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;div class="clear"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It appears my handler isn&amp;#39;t working properly on *.cgi.&amp;nbsp; Any ideas?&amp;nbsp; Thanks.&lt;/p&gt;</description></item><item><title>Re: FastCGI process exceeded configured activity timeout</title><link>http://forums.iis.net/p/1076662/1858782.aspx#1858782</link><pubDate>Mon, 05 Nov 2007 23:04:02 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1858782</guid><dc:creator>hreldelmyer</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;How does one configure the activity timeout when using Perl? Is there also a php.ini file when doing FastCGI with Perl? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>