Bug #69041 [Com]: mod_fcgid: get overlap result error

From: Date: Fri, 05 Jun 2015 20:23:10 +0000
Subject: Bug #69041 [Com]: mod_fcgid: get overlap result error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193158@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69041&edit=1

 ID:                 69041
 Comment by:         andrewteg at gmail dot com
 Reported by:        adam dot tallon at version1 dot com
 Summary:            mod_fcgid: get overlap result error
 Status:             Open
 Type:               Bug
 Package:            CGI/CLI related
 Operating System:   Windows 7 x64
 PHP Version:        5.6.5
 Block user comment: N
 Private report:     N

 New Comment:

We had the same problem but apparently had the x86 version. Once we installed a non thread-safe x64
version we were ok again. We got php-5.6.9-nts-Win32-VC11-x64 working.


Previous Comments:
------------------------------------------------------------------------
[2015-03-02 09:05:16] adam dot tallon at versio1 dot com

No, I don't have any APCU enabled. Very minimal configuration.

------------------------------------------------------------------------
[2015-02-27 21:00:52] ml413 at hotmail dot com

Do you have APCU enabled? Like APC, it doesn't handle NTS PHP very well. I got these errors
when benchmark testing with APCU enabled on 2008R2, Apache 2.4, and PHP 5.6 NTS or PHP 5.5 NTS using
mod_fcgid, but they disappeared when I disabled it. Switching to Wincache with PHP 5.5 was stable.

------------------------------------------------------------------------
[2015-02-12 13:19:19] adam dot tallon at version1 dot com

Description:
------------
All is configured correctly and I can serve HTML pages grand but when I try to request a PHP page no
matter how simple or complex the PHP code I get an internal server error in my browser.

PHP was working fine until I started using mod_fcgid. PHP works ok if I use 'LoadModule'.

In the Apache logs I'm getting the below error:
[fcgid:warn] [pid 816:tid 944] (OS 109)The pipe has been ended. : [client xxx.xxx.xxx.xxx:53392]
mod_fcgif: get overlap result error
[core:error] [pid 816:tid 944] [client xxx.xxx.xxx.xxx:53392] End of script output before headers:
index.php

And all I have in the index.php file is:

<?php
phpinfo();
?>

I'm running the the below:

- Apache 2.4.12 Win64
  - mod_fcgid 2.3.9
- PHP 5.6.5 x64

Apache Fcgid config being used:
FcgidInitialEnv PATH "C:/Program\
Files/PHP;C:/instantclient_12_1;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"
FcgidInitialEnv SystemRoot "C:/Windows"
FcgidInitialEnv SystemDrive "C:"
FcgidInitialEnv TEMP "C:/WINDOWS/Temp"
FcgidInitialEnv TMP "C:/WINDOWS/Temp"
FcgidInitialEnv windir "C:/WINDOWS"
FcgidIOTimeout 64
FcgidConnectTimeout 16
FcgidMaxRequestsPerProcess 1000 
FcgidMaxProcesses 50 
FcgidMaxRequestLen 8131072
# PHPRC is the location of the php.ini file
FcgidInitialEnv PHPRC "c:/Program\ Files/PHP"
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000

<Files ~ "\.php$>"
  AddHandler fcgid-script .php
  FcgidWrapper "c:/Program\ Files/PHP/php-cgi.exe" .php
</Files>


Test script:
---------------
<?php
phpinfo();
?>

Expected result:
----------------
Should render the PHP info page.

Actual result:
--------------
'Internal Server Error' page.


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=69041&edit=1


Thread (7 messages)

« previous php.bugs (#193158) next »