php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9961 CGI Error
Submitted: 2001-03-23 15:34 UTC Modified: 2001-03-25 08:11 UTC
From: stephan at ggaweb dot ch Assigned:
Status: Closed Package: IIS related
PHP Version: 4.0.4pl1 OS: Windows NT Terminal Server
Private report: No CVE-ID: None
 [2001-03-23 15:34 UTC] stephan at ggaweb dot ch
I've got an IIS 4.0 on my WinNT Terminal Server. When I even call the simpliest script my Browser gets following message:

<head><title>Error in CGI Application</title></head>
<body><h1>CGI Error</h1>The specified CGI application misbehaved by not returning a complete set of HTTP headers.  The headers it did return are:<p><p><pre></pre>

i've even once replace the php.exe whith a programm that prints out all the parameters that IIS would pass to the interpreter - everything seems ok (somtimes IIS passes wrong directory information). So i think the php.exe just imediatly shuts down - without printing any text - after beeing called, but why?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-23 16:48 UTC] phildriscoll@php.net
This error occurs when php doesn't output anything. In this instance, it is almost always because IUSR_<machinename> doesn't have sufficient permissions to cause php.exe to execute - often because of file permissions on php.exe, php.ini or php4ts.dll, or any extensions you are trying to load, but sometimes because IUSR_<machinename> doesn't have sufficient privileges to cause a program to execute.

Have a go with these issues, and if you still have no success, post your problem on the php windows list and we will sort you out there.
 [2001-03-24 10:48 UTC] stephan at ggaweb dot ch
Ok i just found out that the program has insufficient permission to php4ts.dll ==> i wrote an analyzing program  with witch i replaced the php.exe interpreter. I think this tool could help many IIS users with this problem. If you want me to send it to you, just tell me.


 [2001-03-24 13:02 UTC] stephan at ggaweb dot ch
My analyzing program had this OUTPUT:
Parameters: 1
ParamStr(1) = "e:\netnight\test.php"
Current Directory: e:\netnight
LoadLibrary('php4ts.dll'): ERROR: ERROR_ACCESS_DENIED
LoadLibrary('msvcrt.dll'): OK; C:\WTSRV\system32\MSVCRT.dll
Script: OK 
php.ini: OK 
Path: E:\Perl\bin\;d:\pvswNT\BIN;d:\btr\exe\bat_;D:\BTR\EXE\BAT;D:\BTR\EXE\TSE;D:\btr\exe\uti;d:\btr\exe\nc;C:\WTSRV\system32;C:\WTSRV;E:\Programme\Borland\Delphi4\Lib;E:\Programme\Borland\Delphi4\Bin;C:\Programme\Symantec\pcAnywhere\;e:\Programme\Mts

as you can see the interpreter should be able to load the msvcrt.dll but why can't it load php4ts.dll? both dlls are in my system directory (C:\WTSRV\system32\) but why can a interpreter only load one of the dlls? What userrights do i have to give to my IUSR_<machinename> account?
 [2001-03-25 08:11 UTC] stephan at ggaweb dot ch
Ok i found the bug ==> php4ts.dll needs access to odbc32.dll and odbcint.dll ==> my IUSR account had no permission for these dll. Now everything works.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 09:01:28 2024 UTC