stavan2003 has asked for the wisdom of the Perl Monks concerning the following question:

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.

Replies are listed 'Best First'.
Re: Dancer2 on Apache + Windows
by Anonymous Monk on Mar 19, 2016 at 05:15 UTC

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

    No

    Any other multi-process/threaded alternative for windows ?

    What? You got apache, so run Dancer under mod_perl ...

    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.

    Wrong forum

      Thanks..will check out the performance using mod_perl...!