You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Roey Almog roey@gmail.com" <ro...@gmail.com> on 2010/08/19 20:36:51 UTC
[users@httpd] Perl script are not running on Apache 2.2.15 / mod_fcgid Win32
Hi,
I have installed apache 2.2.15 with mod_fcgid on Windows XP SP3 and
tried the perl example script in the mod_fcgid reference page but it
is not working
I get this in error log
[Thu Jul 29 11:26:07 2010] [warn] [client 127.0.0.1] (OS 109)The pipe
has been ended. : mod_fcgid: get overlap result error
[Thu Jul 29 11:26:07 2010] [error] [client 127.0.0.1] Premature end of
script headers: foo.pl
I double check everything including:
The #!/usr/bin/perl.exe line
The mod_fcgid is loaded
When running the script as plain cgi it works
When I turned to the older mod_fastcgi it works just fine
What can be done ?
I googled around but no one seems to have solution or managed using
mod_fcgid with perl on Win32
I opened a bug on both FCGI at cpan and on apache tracker but no one
seems to care...
Is there a solution for this ?
Roey
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Perl script are not running on Apache 2.2.15 /
mod_fcgid Win32
Posted by Igor Galić <i....@brainsware.org>.
----- "Roey Almog (Infoneto Ltd)" <al...@infoneto.co.il> wrote:
> Hi,
>
> I have installed apache 2.2.15 with mod_fcgid on Windows XP SP3 and
> tried the perl example script in the mod_fcgid reference page but it
> is not working
>
> I get this in error log
>
> [Thu Jul 29 11:26:07 2010] [warn] [client 127.0.0.1] (OS 109)The pipe
> has been ended. : mod_fcgid: get overlap result error
> [Thu Jul 29 11:26:07 2010] [error] [client 127.0.0.1] Premature end of
> script headers: foo.pl
>
> I double check everything including:
> The #!/usr/bin/perl.exe line
> The mod_fcgid is loaded
>
> When running the script as plain cgi it works
http://serverfault.com/questions/129563/apache-mod-fcgid-perl-error-500
> When I turned to the older mod_fastcgi it works just fine
I don't know if mod_fastcgi doesn't maybe have some
fall-back mechanism to plain CGI.
> What can be done ?
>
> I googled around but no one seems to have solution or managed using
> mod_fcgid with perl on Win32
>
> I opened a bug on both FCGI at cpan and on apache tracker but no one
> seems to care...
>
> Is there a solution for this ?
>
> Roey
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Perl script are not running on Apache 2.2.15 / mod_fcgid Win32
Posted by "Roey Almog (Infoneto Ltd)" <al...@infoneto.co.il>.
Hi,
I have installed apache 2.2.15 with mod_fcgid on Windows XP SP3 and
tried the perl example script in the mod_fcgid reference page but it
is not working
I get this in error log
[Thu Jul 29 11:26:07 2010] [warn] [client 127.0.0.1] (OS 109)The pipe
has been ended. : mod_fcgid: get overlap result error
[Thu Jul 29 11:26:07 2010] [error] [client 127.0.0.1] Premature end of
script headers: foo.pl
I double check everything including:
The #!/usr/bin/perl.exe line
The mod_fcgid is loaded
When running the script as plain cgi it works
When I turned to the older mod_fastcgi it works just fine
What can be done ?
I googled around but no one seems to have solution or managed using
mod_fcgid with perl on Win32
I opened a bug on both FCGI at cpan and on apache tracker but no one
seems to care...
Is there a solution for this ?
Roey
Re: [users@httpd] Perl script are not running on Apache 2.2.15 /
mod_fcgid Win32
Posted by "Roey Almog (Infoneto Ltd)" <al...@infoneto.co.il>.
Hendrik
It is not a time out - it is happens very fast it using process
monitor I see perl.exe start running but for very short time and it
stops, I cannot debug the script and as it runs fine using both CGI
and FastCGI I can only think that mod_fcgid does something else
obviously the pipe communication has some kind of problem
I actually compiled mod_fcgid and found the error is at line 378 at
fcgid_proc_win.c:
as marked bellow HERE IS THE ERROR
but as I do not know how to debug it I am looking for help
/* it's ERROR_IO_PENDING */
DWORD transferred;
DWORD dwWaitResult
= WaitForSingleObject(handle_info->overlap_read.hEvent,
ipc_handle->communation_timeout * 10000);
if (dwWaitResult == WAIT_OBJECT_0) {
if (!GetOverlappedResult(handle_info->handle_pipe,
&handle_info->overlap_read,
&transferred, FALSE /* don't wait */ )
|| transferred == 0) {
rv = apr_get_os_error();
ap_log_rerror(APLOG_MARK, APLOG_WARNING, rv,
ipc_handle->request,
"mod_fcgid : get overlap result
error"); // <---- HERE IS THE ERROR
return rv;
}
*size = transferred;
return APR_SUCCESS;
} else {
ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, ipc_handle->request,
"mod_fcgid: read timeout from pipe");
return APR_ETIMEDOUT;
}
>>
>
> Maybe timeout ?
>
>
> Hendrik
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Perl script are not running on Apache 2.2.15 /
mod_fcgid Win32
Posted by Hendrik Schmieder <he...@jedox.com>.
Roey Almog roey@gmail.com schrieb:
> Hi,
>
> I have installed apache 2.2.15 with mod_fcgid on Windows XP SP3 and
> tried the perl example script in the mod_fcgid reference page but it
> is not working
>
> I get this in error log
>
> [Thu Jul 29 11:26:07 2010] [warn] [client 127.0.0.1] (OS 109)The pipe
> has been ended. : mod_fcgid: get overlap result error
> [Thu Jul 29 11:26:07 2010] [error] [client 127.0.0.1] Premature end of
> script headers: foo.pl
>
> I double check everything including:
> The #!/usr/bin/perl.exe line
> The mod_fcgid is loaded
>
> When running the script as plain cgi it works
> When I turned to the older mod_fastcgi it works just fine
>
> What can be done ?
>
> I googled around but no one seems to have solution or managed using
> mod_fcgid with perl on Win32
>
> I opened a bug on both FCGI at cpan and on apache tracker but no one
> seems to care...
>
> Is there a solution for this ?
>
> Roey
>
Maybe timeout ?
Hendrik
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org