php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15669 Shrinker error - Dispatcher initialisation error 6
Submitted: 2002-02-22 04:06 UTC Modified: 2002-02-23 03:04 UTC
From: sparckle at directvinternet dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 4.1.1 OS: win98
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: sparckle at directvinternet dot com
New email:
PHP Version: OS:

 

 [2002-02-22 04:06 UTC] sparckle at directvinternet dot com
downladed and unpacked php-4.1.1-Win32 and php-4.1.1-installer apps from PHP site.
Installed using automatic method and checked entries under manual method in registry.
Obtained MDAC latest version 2.7 and MDAC checker programfrom microsoft for PWS ran same and brought up to date on PWS standard install APP from New win98 2nd ed CD. (registered ver). Tried command line PHP -i and obtained output file. stored local. viewed in HTML browser as htm file. All seems OK
wrote first php file. As example and tried in browser. Result "CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:" rest of page blank. simplehello world example.
downloaded and tried to run iiscfg.exe after studying PHP site. This fails on "Shrinker error - Dispatcher initialisation error 6" Checked around and found others were having same problem. my php.ini is disturbingly sparse, so I looked at the  browscap config file which lists most browsers. there seems to be no entries for IE6.0 so  I guess the install script didn't complete as it should have. All logs available for the asking. Any ideas guys(gals). PS you don't have installation issues as a type of bug on this page. http://bugs.php.net/report.php
PPS keep up the good work. Hope to let you have some plug ins for this presently. Would fix it myself but I don't have the structure worked out yet. Or C++ compiler yet. :(

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-22 12:20 UTC] sander@php.net
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php

Very likeley to be a configuration error. 
 [2002-02-23 03:04 UTC] sparckle at directvinternet dot com
***** PHP Installation *******************************************

This is the install process for PHP4. I used php-4.0.1pl2-Win32.zip. 
The documentation claims that you need the updated dcom95.exe from 
microsoft. On win 98, dcom95.exe won't run, so bother getting it. There 
is a dcom98.exe, but PHP4 runs both with and without it, in my 
experience (Win 98SE).

Unzip the file and copy all the files to your PHP directory. Rename:

php.ini-dist to php.ini

Open it in a text editor. 
Search for the string doc_root and make sure it is not set to any 
value. 
Search for extension_dir and set its value to "c:\progra~1\PHP", or 
whatever your PHP directory is. Use the quotes. I've read that you 
don't need the quotes, or that you can use long filenames. I chose to 
play it safe, and follow the example set by the .ini file.
Search for brows_cap and delete the semi-colon (;) before it to 
uncomment it.

The various lines should now look like:

doc_root = ; the root of the php pages, used only if nonempty

extension_dir = "c:\progra~1\PHP" ; directory in which the loadable 
extensions (modules) reside

browscap = "c:\windows\system\inetsrv\browscap.ini"

Move the php.ini file to C:\WINDOWS\
Move the php4ts.dll & msvcrt.dll files to C:\WINDOWS\SYSTEM\. If there 
is already a msvcrt.dll, you don't need to replace it.

Now you need to tell the server what file extensions to associate with 
PHP. Create a file PHP.reg, enter the following text (except the 
start/end designations), save, and run it to add the keys to the 
Registry, as in the Perl installation.

***** start file: PHP.reg *****
REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters\S
cript Map]
".php"="C:\\Program Files\\PHP\\php4isapi.dll"
".phtml"="C:\\Program Files\\PHP\\php4isapi.dll"

***** end file: PHP.reg *****

Reboot (things might work now, but I doubt it.)

Time for a test. Enter the following code into a text editor and save 
it as
test.html
test.php
test.phtml (or whatever other file extensions you associated with PHP).

***** start file: test.html, .php, .phtml *****
<html>
	<head>
		<title>Example</title>
	</head>
	<body>
		Hello, I'm not a script!</P>
		<script language="php"> 
			echo("Hi, I'm a PHP script!");
		</script>
	</body>
</html>
***** end file: test.html, .php, .phtml *****

Place all the files in your PHP install directory. The go to the URLs
http://localhost/php/test.html
http://localhost/php/test.php
http://localhost/php/test.phtml

If you set up the PHP virtual directory as described in the PWS 
installation, you will load the test file and execute the php code. The 
output will look like:

Hello, I'm not a script!

Hi, I'm a PHP script!

for the .php and .phtml files. Only the 'not a script' text will appear 
for the .html file. If the scripts don't work, make sure you've got 
Execute privilege set in PWS for the folder the files are in; make sure 
you're browsing via the server (http://) and not the file directory 
(C:\My Documents); make sure the registry keys were set correctly.

If it worked, congratulations, you've installed PHP!


I now recommend rebooting (yes, again) and then testing everything 
again.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 17 07:05:44 2022 UTC