[Catalyst] mod_fcgid on win32
Hey guys, So I'm trying to get us to go from mod_perl to mo_fcgid so that I can stop using ActivePerl and start using strawberry on our server (can't get mod_perl to build for the life of me.) Anyway, here's my current config: DocumentRoot "C:/aircraft_ducting/root/" Alias /static "C:/aircraft_ducting/root/static" Alias / "C:/aircraft_ducting/script/acd_fastcgi.pl/" AddHandler fcgid-script .pl Options ExecCGI SetOutputFilter DEFLATE SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary SetHandler default-handler When I go to host:8080 I get: [Thu Jan 28 02:31:57 2010] [warn] [client 10.6.1.73] (OS 109)The pipe has been ended. : mod_fcgid: get overlap result error [Thu Jan 28 02:31:57 2010] [error] [client 10.6.1.73] Premature end of script headers: acd_fastcgi.pl In the error.log I'm afraid this might be a win32 issue :-/ Anyway, does anyone have any input on this? I'd really like to get this working. -- fREW Schmidt http://blog.afoolishmanifesto.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
On 28 Jan 2010, at 08:33, fREW Schmidt wrote: I'm afraid this might be a win32 issue :-/ Anyway, does anyone have any input on this? I'd really like to get this working. Google suggests that use mod_fastcgi is the correct fix :) Also what is recommended given you're not doing shared hosting. My other though(s) would be the shebang line in your script, and try renaming the script to .fcgi (and also associating that with perl) - this matters sometimes, and try without the DEFLATE... Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
On 28 January 2010 09:44, Tomas Doran wrote: > > On 28 Jan 2010, at 08:33, fREW Schmidt wrote: >> >> I'm afraid this might be a win32 issue :-/ Anyway, does anyone have any >> input on this? I'd really like to get this working. > > Google suggests that use mod_fastcgi is the correct fix :) I'd second that, I've tried both mod_fastcgi and mod_fcgid pretty exhaustively on various versions of Apache on Win32 and only ever managed to get the former working. Not to say that mod_fcgid won't work of course, but mod_fastcgi is certainly the path of least resistance ;) ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
I'm running mod_fcgid on debian because it comes as a distro package while mod_fastcgi doesn't. Note that it took some time for me too to get it working. I can mail or paste my setup if that helps you on win32. -- Best regards, Alex Am Donnerstag, den 28.01.2010, 13:19 +0100 schrieb Will Hawes: > On 28 January 2010 09:44, Tomas Doran wrote: > > > > On 28 Jan 2010, at 08:33, fREW Schmidt wrote: > >> > >> I'm afraid this might be a win32 issue :-/ Anyway, does anyone have any > >> input on this? I'd really like to get this working. > > > > Google suggests that use mod_fastcgi is the correct fix :) > > I'd second that, I've tried both mod_fastcgi and mod_fcgid pretty > exhaustively on various versions of Apache on Win32 and only ever > managed to get the former working. Not to say that mod_fcgid won't > work of course, but mod_fastcgi is certainly the path of least > resistance ;) > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien Handelsgericht Wien, FN 79340b *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* Notice: This e-mail contains information that is confidential and may be privileged. If you are not the intended recipient, please notify the sender and then delete this e-mail immediately. *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
Excerpts from Alexander Hartmaier's message of Thu Jan 28 09:00:28 -0500 2010: > I'm running mod_fcgid on debian because it comes as a distro package > while mod_fastcgi doesn't. Yes it does: http://packages.debian.org/search?keywords=libapache2-mod-fastcgi hdp. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
ARGH I've looked *multiple* times for it, but not in the non-free repo. Do you know why it is there? -- Best regards, Alex Am Donnerstag, den 28.01.2010, 15:14 +0100 schrieb Hans Dieter Pearcey: > Excerpts from Alexander Hartmaier's message of Thu Jan 28 09:00:28 -0500 2010: > > I'm running mod_fcgid on debian because it comes as a distro package > > while mod_fastcgi doesn't. > > Yes it does: > > http://packages.debian.org/search?keywords=libapache2-mod-fastcgi > > hdp. > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien Handelsgericht Wien, FN 79340b *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* Notice: This e-mail contains information that is confidential and may be privileged. If you are not the intended recipient, please notify the sender and then delete this e-mail immediately. *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
Excerpts from Alexander Hartmaier's message of Thu Jan 28 09:29:42 -0500 2010: > I've looked *multiple* times for it, but not in the non-free repo. > Do you know why it is there? Probably because it has a weird license: http://packages.debian.org/changelogs/pool/non-free/liba/libapache-mod-fastcgi/libapache-mod-fastcgi_2.4.6-1/copyright hdp. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
Alexander Hartmaier wrote: ARGH I've looked *multiple* times for it, but not in the non-free repo. Do you know why it is there? I think the clue is in the name :) It's not licensed such that debian include it in their 'normal' repositories.. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
On Thu, Jan 28, 2010 at 8:56 AM, Tomas Doran wrote: > Alexander Hartmaier wrote: > >> ARGH >> >> I've looked *multiple* times for it, but not in the non-free repo. >> Do you know why it is there? >> > > I think the clue is in the name :) > > It's not licensed such that debian include it in their 'normal' > repositories.. > > Ah, is that why it's not officially blessed by apache like mod_fcgid? -- fREW Schmidt http://blog.afoolishmanifesto.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
Ok, so I may be getting somewhere with this, but I can't tell. I installed the .dll found here: http://www.fastcgi.com/dist/ and now my config looks like the following: DocumentRoot "C:/aircraft_ducting/root/" Alias /static "C:/aircraft_ducting/root/static" FastCgiServer "C:/aircraft_ducting/script/acd_fastcgi.fcgi" -processes 3 #Alias / "C:/aircraft_ducting/script/acd_fastcgi.fcgi" Alias / "C:/aircraft_ducting/script/acd_fastcgi.fcgi/" SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary SetHandler default-handler When I run the fastcgi script manually from the commandline it prints out our root page, which seems like a good sign. Yet when I go to host:8080 I get a 500 and the following is printed in the logs: [Thu Jan 28 21:10:07 2010] [warn] FastCGI: server "C:/aircraft_ducting/script/acd_fastcgi.fcgi" (pid 788) terminated with exit with status '0' [Thu Jan 28 21:10:07 2010] [warn] FastCGI: server "C:/aircraft_ducting/script/acd_fastcgi.fcgi" restarted (pid 944) [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value $ENV{"REMOTE_ADDR"} in string ne at C:/usr/site/lib/Catalyst/Engine/CGI.pm line 61. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value $ENV{"SERVER_PORT"} in numeric eq (==) at C:/usr/site/lib/Catalyst/Engine/CGI.pm line 85. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value $host in pattern match (m//) at C:/usr/site/lib/Catalyst/Engine/CGI.pm line 136. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value $host in substitution (s///) at C:/usr/site/lib/Catalyst/Engine/CGI.pm line 185. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value $host in concatenation (.) or string at C:/usr/site/lib/Catalyst/Engine/CGI.pm line 196. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value $host in concatenation (.) or string at C:/usr/site/lib/Catalyst/Engine/CGI.pm line 204. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value in string eq at C:/usr/site/lib/Catalyst/Action/RenderView.pm line 52. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value in string eq at C:/usr/site/lib/Catalyst.pm line 1714. Any ideas on what I might try next? -- fREW Schmidt http://blog.afoolishmanifesto.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
Is it still valid? Copyright (c) 1995-1996 Open Market, Inc. -- Best regards, Alex Am Donnerstag, den 28.01.2010, 15:45 +0100 schrieb Hans Dieter Pearcey: > Excerpts from Alexander Hartmaier's message of Thu Jan 28 09:29:42 -0500 2010: > > I've looked *multiple* times for it, but not in the non-free repo. > > Do you know why it is there? > > Probably because it has a weird license: > > http://packages.debian.org/changelogs/pool/non-free/liba/libapache-mod-fastcgi/libapache-mod-fastcgi_2.4.6-1/copyright > > hdp. > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien Handelsgericht Wien, FN 79340b *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* Notice: This e-mail contains information that is confidential and may be privileged. If you are not the intended recipient, please notify the sender and then delete this e-mail immediately. *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
Hi, > Ok, so I may be getting somewhere with this, but I can't tell. > > I installed the .dll found here: http://www.fastcgi.com/dist/ and now my > config looks like the following: > > ... > > Any ideas on what I might try next? Have you tried the mod_fastcgi binaries and config example described on catalyst wiki? http://dev.catalystframework.org/wiki/deployment/apache_fastcgi_win32 -- kmx ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
fREW Schmidt wrote: Ok, so I may be getting somewhere with this, but I can't tell. I installed the .dll found here: http://www.fastcgi.com/dist/ and now my config looks like the following: DocumentRoot "C:/aircraft_ducting/root/" Alias /static "C:/aircraft_ducting/root/static" FastCgiServer "C:/aircraft_ducting/script/acd_fastcgi.fcgi" -processes 3 #Alias / "C:/aircraft_ducting/script/acd_fastcgi.fcgi" Alias / "C:/aircraft_ducting/script/acd_fastcgi.fcgi/" SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary SetHandler default-handler When I run the fastcgi script manually from the commandline it prints out our root page, which seems like a good sign. Yet when I go to host:8080 I get a 500 and the following is printed in the logs: [Thu Jan 28 21:10:07 2010] [warn] FastCGI: server "C:/aircraft_ducting/script/acd_fastcgi.fcgi" (pid 788) terminated with exit with status '0' [Thu Jan 28 21:10:07 2010] [warn] FastCGI: server "C:/aircraft_ducting/script/acd_fastcgi.fcgi" restarted (pid 944) [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value $ENV{"REMOTE_ADDR"} in string ne at C:/usr/site/lib/Catalyst/Engine/CGI.pm line 61. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value $ENV{"SERVER_PORT"} in numeric eq (==) at C:/usr/site/lib/Catalyst/Engine/CGI.pm line 85. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value $host in pattern match (m//) at C:/usr/site/lib/Catalyst/Engine/CGI.pm line 136. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value $host in substitution (s///) at C:/usr/site/lib/Catalyst/Engine/CGI.pm line 185. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value $host in concatenation (.) or string at C:/usr/site/lib/Catalyst/Engine/CGI.pm line 196. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value $host in concatenation (.) or string at C:/usr/site/lib/Catalyst/Engine/CGI.pm line 204. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value in string eq at C:/usr/site/lib/Catalyst/Action/RenderView.pm line 52. [Thu Jan 28 21:10:12 2010] acd_fastcgi.fcgi: Use of uninitialized value in string eq at C:/usr/site/lib/Catalyst.pm line 1714. Any ideas on what I might try next? Not sure if this is still an issue but I'm getting the same uninitialized error, tracked it down to using either of the plugins FormValidator or FormValidator::Simple. As I don't know enough about the plugins, no one else appears to be having this issue, and prefer the nicer FormFu I'm currently refactoring to that instead, initial results are good. Alan -- fREW Schmidt http://blog.afoolishmanifesto.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] mod_fcgid on win32
Hi fREW, > Ok, so I may be getting somewhere with this, but I can't tell. > > I installed the .dll found here: http://www.fastcgi.com/dist/ and now my > config looks like the following: > > Considering that the mentioned DLL is dated 2007 it is very likely to be buggy on Win32 Apache + Catalyst. Have you checked this article on catalyst wiki? (BTW: the first google hit for: apache win32 mod_fastcgi catalyst) http://wiki.catalystframework.org/wiki/deployment/apache_fastcgi_win32 -- kmx ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/