Streaming stops after 5 minutes (IIS)

From JinzoraWiki

Jump to: navigation, search

Contents

Problem

Streaming stops after approximately 5 minutes, when using Microsoft Internet Information Services (IIS, formerly called Internet Information Server).

Cause

Timeouts after five minutes with IIS on Windows can be caused by an inherited CGI Timeout value of 300 seconds. This is not a PHP problem.

Solution

IIS 6

From Jinzora Forums:

  • You'll need to get the IIS 6.0 Resource Kit Tools.
  • Install the Resource Kit.
  • Go to Start, Programs, IIS Resources, Metabase Explorer, Metabase Explorer.
  • Open 'LM'.
  • Open 'W3SVC'.
  • Find 'CGITimeout' in the name category (sorting by name helps).
  • It will probably have 300 (5 minutes) as the value for the data column. Double click and change it to your liking (7200 is 2 hours which will work best if you have long DJ mixes to stream, or entire albums condensed to a single mp3).
  • Restart your web site through the IIS Manager.
  • Enjoy songs for more then 5 minutes!

IIS 5 & 7

From php.net:

  • Timeouts after five minutes in IIS on Windows are caused by an inherited CGI Timeout value of 300 seconds. This is not a PHP problem. The fix is to add custom values for the files or directories that need longer to run.
  • In IIS 5.0 or 7.0 (beta as of this note), you can change this value on a fairly granular level using IIS Manager, under (roughly) YOURSITE -> Properties -> Home Directory -> Configuration (button) -> Options, but in IIS 6.0, this functionality is turned off (!), so you have to get into the Metabase.
  • Find the site number in Metabase Explorer (e.g. 12345678).
  • Get to the scripts dir from CMD prompt: cd C:\Inetpub\AdminScripts.
  • For each subdirectory from off the site root enter: cscript adsutil.vbs CREATE W3SVC/12345678/root/"MY SUBDIRECTORY" IIsWebDirectory.
  • For the file in question enter: cscript adsutil.vbs CREATE W3SVC/12345678/root/"MY SUBDIRECTORY"/ILikeToTimeOut.php IIsWebFile.
  • To set the timeout: cscript adsutil.vbs set W3SVC/12345678/root/"MY SUBDIRECTORY"/ILikeToTimeOut.php/CGITimeout "7200".

Links

This solution was originally posted here by psykoral.

Personal tools