|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69041 mod_fcgid: get overlap result error
Submitted: 2015-02-12 13:19 UTC Modified: -
Avg. Score:4.3 ± 0.9
Reproduced:20 of 20 (100.0%)
Same Version:6 (30.0%)
Same OS:8 (40.0%)
From: adam dot tallon at version1 dot com Assigned:
Status: Open Package: CGI/CLI related
PHP Version: 5.6.5 OS: Windows 7 x64
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-02-12 13:19 UTC] adam dot tallon at version1 dot com
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] mod_fcgif: get overlap result error
[core:error] [pid 816:tid 944] [client] End of script output before headers: index.php

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


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

Test script:

Expected result:
Should render the PHP info page.

Actual result:
'Internal Server Error' page.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-27 21:00 UTC] 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-03-02 09:05 UTC] adam dot tallon at versio1 dot com
No, I don't have any APCU enabled. Very minimal configuration.
 [2015-06-05 20:23 UTC] andrewteg at gmail dot com
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.
 [2017-10-26 03:36 UTC] jackzhu at aliyun dot com
Try `php --version`, if you saw nothing, you may just need the **x86** VC11 runtime. On my php x86 nts 5.6.31 + Apache 2.4 x64 + mod_fcgi on Windows 10 x64, install the x86 runtime solved the same problem.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jul 24 06:01:24 2021 UTC