PHP 4.0 Bug #9961 Updated: CGI Error
| From: | stephan at ggaweb dot ch | Date: | Sun, 25 Mar 2001 13:11:06 +0000 |
| Subject: | PHP 4.0 Bug #9961 Updated: CGI Error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49902@lists.php.net to get a copy of this message | ||
ID: 9961
User Update by: stephan@ggaweb.ch
Status: Closed
Bug Type: IIS related
Description: CGI Error
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.
Previous Comments:
---------------------------------------------------------------------------
[2001-03-24 13:02:38] stephan@ggaweb.ch
My analyzing program had this OUTPUT:
Parameters: 1
ParamStr(1) = "e:netnighttest.php"
Current Directory: e:netnight
LoadLibrary('php4ts.dll'): ERROR: ERROR_ACCESS_DENIED
LoadLibrary('msvcrt.dll'): OK; C:WTSRVsystem32MSVCRT.dll
Script: OK
php.ini: OK
Path:
E:Perlbin;d:pvswNTBIN;d:btrexebat_;D:BTREXEBAT;D:BTREXETSE;D:btrexeuti;d:btrexenc;C:WTSRVsystem32;C:WTSRV;E:ProgrammeBorlandDelphi4Lib;E:ProgrammeBorlandDelphi4Bin;C:ProgrammeSymantecpcAnywhere;e:ProgrammeMts
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:WTSRVsystem32) 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-24 10:48:36] stephan@ggaweb.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-23 16:48:49] 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-23 15:34:17] stephan@ggaweb.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?
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9961