php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31789 php hangs IIS
Submitted: 2005-02-01 05:38 UTC Modified: 2005-02-11 05:03 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: hyde at area51services dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.3.10 OS: Win2k AS
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hyde at area51services dot com
New email:
PHP Version: OS:

 

 [2005-02-01 05:38 UTC] hyde at area51services dot com
Description:
------------
I can confim this is a bug, IIS needs to be restarted in order for any web pages to be viewed after this happens. This is happening on a high traffic php server of ours. It does not appear to be any kind of memory leak and cpu usage is fine. It has been traced to a phpbb app but I see many posts on google with other php apps showing the same errors. currently nobody has a solution.

The server has one error in the event log when iis locks, after iis is restarted it shows about 10 more event 16's. 

we have no other issues with this server.

Here is the data in my event log before I restart IIS:
===================================
Event Type:	Error
Event Source:	W3SVC
Event Category:	None
Event ID:	16
Date:		1/31/2005
Time:		5:23:45 PM
User:		N/A
Computer:	(***PRIVATE***)
Description:
The script started from the URL '/forum/viewtopic.php' with parameters 'p=6870&sid=096f829977ce8e227a83763bbfda5768' has not responded within the configured timeout period.  The HTTP server is terminating the script. 
For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp
======================================

after iis is restarted:
=======================================
Event Type:	Error
Event Source:	W3SVC
Event Category:	None
Event ID:	16
Date:		1/31/2005
Time:		8:06:07 PM
User:		N/A
Computer:	(***PRIVATE***)
Description:
The script started from the URL '/forum/viewforum.php' with parameters 'f=9&sid=d298d53fcef2885c4333fd751b9c6e66' has not responded within the configured timeout period.  The HTTP server is terminating the script. 
For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
=========================================
&
=========================================
Event Type:	Error
Event Source:	W3SVC
Event Category:	None
Event ID:	16
Date:		1/31/2005
Time:		8:06:07 PM
User:		N/A
Computer:	(***PRIVATE***)
Description:
The script started from the URL '/forum/viewforum.php' with parameters 'f=12&sid=d298d53fcef2885c4333fd751b9c6e66' has not responded within the configured timeout period.  The HTTP server is terminating the script. 
For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
========================================
are the most common instances after restarting iis

sometimes:
Event Type:	Error
Event Source:	Srv
Event Category:	None
Event ID:	2012
Date:		1/17/2005
Time:		3:53:11 AM
User:		N/A
Computer:	(***PRIVATE***)
Description:
The server has encountered a network error. 
Data:
0000: 00 00 04 00 01 00 54 00   ......T.
0008: 00 00 00 00 dc 07 00 c0   ....?..?
0010: 00 00 00 00 3d 02 00 c0   ....=..?
0018: 00 00 00 00 00 00 00 00   ........
0020: 00 00 00 00 00 00 00 00   ........
0028: 41 09 00 00               A...    
==========================================

Expected result:
----------------
I would like the php to drop any apps that may cause IIS to hang. 

Actual result:
--------------
All sites on the server become inaccessable after this bug occures.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-01 09:26 UTC] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2005-02-02 02:16 UTC] hyde at area51services dot com
as requested I reread the info on "HOW TO REPORT A BUG".

what I did:
installed php v4.3.10 on our server. and installed .php aps such as phpbb.com's forum script. This happens with any high traffic site running php applications. It is not spacific code that is causing it to hang.

What I wanted to happen:
for the server to run without any detrimental problems.

What actually happened:
IIS and php get stuck or hang occationally when running php aplications and one of them needs to be restarted for http to work again.

other instances of this happening:
http://www.google.com/search?hl=en&lr=&q=%2Bw3svc+%22event+id+16%22+%22.php%22+%2Biis

I'm not sure what further information I can offer. It seems to be a general handeling between iis and php. please be more spacific in what information I'm failing to provide.
 [2005-02-02 02:31 UTC] hyde at area51services dot com
Also, I have tried adjusting my php.ini for high traffic servers but It did not work.

-allowing more time for timeout increasing memory limits etc.
 [2005-02-02 17:13 UTC] sniper@php.net
We are aware of PHP's problems with stability under IIS and are working 
to rectify the problem. Unfortunatly your bug report does not contain any
extra useful information and we already have enough bug reports open about
this issue. If you can provide more detailed information such as a 
reproducable crash or a backtrace please do so and reopen this bug. 
Otherwise please keep trying new releases as we are working to resolve 
the problems on this platform
 
Thanks for your interest in PHP.


 [2005-02-11 00:50 UTC] hyde at area51services dot com
I have solved this issue by editing the php.ini file as follows:

max_execution_time = 30 (lowered from default)
max_input_time = 30 (lowered from default)
memory_limit = 64M (increased dramatically)
(you would think this would be overkill but any less and I get locks)

I still receive the Event ID 16 every once in a a while on the high traffic servers but php no longer locks iis.
 [2005-02-11 05:03 UTC] sniper@php.net
Great. Still keep it bogus, PHP is not ready for threaded environments. Ever.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 02:01:28 2024 UTC