php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75581 Failure of FastCgi in PHP v.7.1.7
Submitted: 2017-11-27 15:09 UTC Modified: 2018-05-05 21:56 UTC
From: rges at ziggo dot nl Assigned:
Status: No Feedback Package: Performance problem
PHP Version: 7.1Git-2017-11-27 (Git) OS: Windows 10 prof
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rges at ziggo dot nl
New email:
PHP Version: OS:

 

 [2017-11-27 15:09 UTC] rges at ziggo dot nl
Description:
------------
Hello expert,
 
Recently, my websites running (on the same 32-bit webserver) under PHP version 7.1.7 crash many times (Internal Server Error 500), 
or are 'frozen' in a process (Loading data...) which does not end.
The Internal Server Error is traced back to a FastCGI problems/failures.
Sometimes, refreshing the browser-window (F5 or ctrl-R) helps, but often I have to restart my webserver entirely (hard-reboot).

Error message:
"HTTP Error 500.0 - Internal Server Error. The FastCGI process has failed frequently recently. Try the request again in a while."

A. Example Piwigo (online photo album showcase):
Clicking in album categories of Piwigo and on individual photo's for detail-page cause the same FastCGI error message.
This happens especially when handling GIF-animations, which are resized on the fly by the Imagick-plugin.
(The website also contains the PicLens 3D Wall plugin [Adobe Flash]).

The Imagick-plugin in Piwigo needs C++ runtime:
This will not work in combination with the latest version: Microsoft Visual Studio C++ 2017 Redistributable (x86) 14.10.25017
This may work with: Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.23026 , but often results in 'frozen' webserver.

B. Example Piwik (web-statistics analysis): 
Clicking on the webpages of Piwik, navigation towards a monitored website:
Piwik: Settings | Websites | Manage -->
Piwik-site page gets stuck in 'Loading data...' or displays error message:
"HTTP Error 500.0 - Internal Server Error. The FastCGI process has failed frequently recently. Try the request again in a while."
The statistically calculated content of the Piwigo-site (visitor activities) is often blanc in Piwik detail-pages, and sometimes filled with appropriate data.

---
Overal performance: these PHP-sites have become slow and unpredictable.
(As webbrowser, I used the updated versions of: Edge, Firefox and Opera.)

Do you know what could be the main cause of this FastCGI problem?
Do you know what the correct combination/implementation/settings should be, to get these websites working properly, 
regarding versions of: Piwik, Piwigo, Imagick, Visual C++ Redistributable, PHP - FastCgi ?

Environment:
Piwigo 2.9.2 (www.rolfsnijders.net)
Piwik 3.2.0 

Operating system: WINNT: Windows 10 prof 32bit, webserver: IIS 10 
PHP: 7.1.7 [2017-11-21]
MySQL: 5.5.54 

Imagick Graphics Library: External ImageMagick 7.0.5-1
Installed on webserver: 
a) ImageMagick-7.0.5-1-Q16-x86-dll.exe (desktop software).
b) Relevant content of: php_imagick-3.4.3rc4-7.1-nts-vc14-x86.zip (PHP-extension).

Friendly regards,
Rolf



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-11-27 15:15 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2017-11-27 15:15 UTC] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2018-01-06 19:53 UTC] ab@php.net
Thanks for the report. An issue I see for sure, is that you use ImageMagick library from an incompatible version. Please check a 6.x version from http://windows.php.net/downloads/pecl/deps/ . Note that only some basic ImageMagick parts are included with the extension release builds, unpack the suitable library and put it onto the path.

Thanks.
 [2018-01-12 08:39 UTC] rges at ziggo dot nl
-Status: Feedback +Status: Open
 [2018-01-12 08:39 UTC] rges at ziggo dot nl
Hello AB,
The zip-file that you advise has a different content from what I used in the past to include 
in the PHP-folder for running PHP-websites in IIS10 (C:\...\PHP\v7.1\ext).
I used php_imagick-3.4.3rc4-7.1-nts-vc14-x86.zip, and from this file I only included the DLL's as mentioned 
by others (https://refreshless.com/blog/imagick-pecl-imagemagick-windows/) on several websites:
CORE_RL_bzlib_.dll 
CORE_RL_glib_.dll 
CORE_RL_lcms_.dll 
CORE_RL_lqr_.dll 
CORE_RL_magick_.dll 
CORE_RL_ttf_.dll 
CORE_RL_wand_.dll 
CORE_RL_zlib_.dll
and php_imagick.dll
The zip-file I used, can be found in http://windows.php.net/downloads/pecl/releases/imagick/3.4.3rc4/ , 
so not in the folder you mentioned (http://windows.php.net/downloads/pecl/deps/ ).
Thus, now I am confused what is the correct zip, especially because 'your' zip-file does not contain php_imagick.dll .
Imagick is only used by Piwigo (photo gallery) and not by Matomo (visitor analytics, previously known as Piwik). 
Both these websites still crash with server error 500.
Do you have any further advice?
Friendly regards,
Rolf
 [2018-01-12 16:37 UTC] ab@php.net
Thanks for the further info. You've listed ImageMagick-7.0.5-1-Q16-x86-dll.exe which perhaps is on the global path. The ImageMagick binaries need to be the same they are for the extension builds. Currently none of the imagic builds use ImageMagick 7.x but 6.x.

Thanks.
 [2018-02-15 10:26 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2018-02-15 10:26 UTC] ab@php.net
@rges at ziggo dot nl, any updates? Thanks.
 [2018-05-05 21:56 UTC] requinix@php.net
-Status: Feedback +Status: No Feedback
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Tue Oct 23 22:01:26 2018 UTC