I am a newbie and am in process of deploying a quick App using Strawberry Perl v5.20 Dancer2 framework on Windows 7 64-bit.
C:\xampp\apache\bin>httpd.exe -v Server version: Apache/2.4.17 (Win32) Apache Lounge VC11 Server built: Oct 13 2015 10:54:13

Using the native CGI as mentioned in the Dancer Deplyoment guide the rendering is very slow ~ 4s compared to use of plackup app.pl ~ 400ms

Below is my working native cgi apache config :
<VirtualHost *:80> ServerName xyz DocumentRoot C:/xampp/cgi-bin/xyz/public ServerAdmin you@xyz.com <Directory "C:/xampp/cgi-bin/xyz/public"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all AddHandler cgi-script .cgi </Directory> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /dispatch.cgi$1 [QSA,L] </VirtualHost>
Since my app requires simultaneous access and to improve the performance I am planning to shift to mod_fastcgi.

Is there any change in the above config or in httpd.conf which can help me improve the performance ?

Any other multi-process/threaded alternative for windows ?

I have searched quite a bit and have given up. Need your help in finding out the mod_fastcgi binary for windows supporting Apache 2.4.

I have tried using the one at this location, but it seems to be compiled for Apache 2.2 http://strawberryperl.com/package/kmx/mod_fastcgi/ Restarting apache with this doesn't work with the below changes.

#LoadModule fastcgi_module modules/mod_fastcgi.so #<IfModule mod_fastcgi> # AddHandler fastcgi-script .fcgi #</IfModule> #RewriteRule ^(.*)$ /dispatch.fcgi$1 [QSA,L]
Thanks a lot for your help.

In reply to Dancer2 on Apache + Windows by stavan2003

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.