Hi,
I really don't have anything left to try, perhaps someone here can give me more insight.
Yesterday I installed PHP x64 5.3.0 as CGI-Application; long story short, it works perfectly. I can even run OWA 2007 on the same IIS site without any trouble.
Only with fastCGI I cannot get eny further. I downloaded the X64 version from this site, installed it via double-click and had no errors there. DLL version is 6.1.0036.1, IIS is 6.0.
- When checking the webservice extensions, FastCGI is allowed and does have $windir/system32/inetsrv/fcgiext.dll as the only necessary file in it.
- I created an fcgiext.ini manually in the same directory as above (the fcgiext config script for cscript was not installed with fastcgi somehow) and put exactly five lines in it:
[Types]
php=PHP
[PHP]
ExePath=C:\PHP\php-cgi.exe
Access ist granted to Everyone with Full Access (!)
- I got the Tool Process Monitor to view any file action that might occur
- I configured a script mapping for Default Site pointing to the above DLL for the extension ".php" and all verbs. Both checkboxes in that dialogue are ticked as well
- Then I reset IIS via iisreset.exe
Now when browsing to a PHP file, it will always throw a fastcgi error:
- Could not find entry for "php" on site 1 in [Types] section.
- Error Number: 1413 (0x80070585).
- Error Description: invalid index.
whereas the ini file looks as stated above.
and most confusing of all, when viewing the process monitor file activity log it would look like this:
###############
21:15:30,7565924 w3wp.exe 3804 CreateFile C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS Desired Access: Read Control, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
21:15:30,7567302 w3wp.exe 3804 QuerySecurityFile C:\WINDOWS\system32\inetsrv\fcgiext.dll BUFFER OVERFLOW Information: Owner, Group, DACL
21:15:30,7567519 w3wp.exe 3804 CloseFile C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS
21:15:30,7569366 w3wp.exe 3804 CreateFile C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS Desired Access: Read Control, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
21:15:30,7569645 w3wp.exe 3804 QuerySecurityFile C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS Information: Owner, Group, DACL
21:15:30,7569833 w3wp.exe 3804 CloseFile C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS
21:15:30,7571914 w3wp.exe 3804 QueryOpen C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS CreationTime: 08.11.2007 09:39:18, LastAccessTime: 01.07.2009 21:10:22, LastWriteTime: 08.11.2007 09:39:18, ChangeTime: 01.07.2009 20:04:47, AllocationSize: 114.688, EndOfFile: 111.632, FileAttributes: A
21:15:30,7573590 w3wp.exe 3804 CreateFile C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS Desired Access: Execute/Traverse, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
21:15:30,7573998 w3wp.exe 3804 CreateFileMapping C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS SyncType: SyncTypeCreateSection, PageProtection:
21:15:30,7574160 w3wp.exe 3804 QueryStandardInformationFile C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS AllocationSize: 114.688, EndOfFile: 111.632, NumberOfLinks: 1, DeletePending: False, Directory: False
21:15:30,7574467 w3wp.exe 3804 CreateFileMapping C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS SyncType: SyncTypeOther
21:15:30,7575026 w3wp.exe 3804 CloseFile C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS
21:15:30,7576794 w3wp.exe 3804 QueryOpen C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS CreationTime: 08.11.2007 09:39:18, LastAccessTime: 01.07.2009 21:15:30, LastWriteTime: 08.11.2007 09:39:18, ChangeTime: 01.07.2009 20:04:47, AllocationSize: 114.688, EndOfFile: 111.632, FileAttributes: A
21:15:30,7578429 w3wp.exe 3804 CreateFile C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS Desired Access: Read Data/List Directory, Execute/Traverse, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
21:15:30,7578711 w3wp.exe 3804 CreateFileMapping C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS SyncType: SyncTypeCreateSection, PageProtection:
21:15:30,7579339 w3wp.exe 3804 CreateFileMapping C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS SyncType: SyncTypeOther
21:15:30,7579649 w3wp.exe 3804 CloseFile C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS
21:15:30,7581979 w3wp.exe 3804 Load Image C:\WINDOWS\system32\inetsrv\fcgiext.dll SUCCESS Image Base: 0x3070000, Image Size: 0x1e000
21:15:30,7594017 w3wp.exe 3804 CreateFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, AllocationSize: n/a, OpenResult: Opened
21:15:30,7595769 w3wp.exe 3804 QueryOpen C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS CreationTime: 12.01.2009 23:03:02, LastAccessTime: 01.07.2009 21:10:22, LastWriteTime: 12.01.2009 23:03:02, ChangeTime: 01.07.2009 06:42:34, AllocationSize: 8.192, EndOfFile: 7.612, FileAttributes: A
21:15:30,7597560 w3wp.exe 3804 CreateFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
21:15:30,7598884 w3wp.exe 3804 LockFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS Exclusive: False, Offset: 0, Length: 4.294.967.295, Fail Immediately: False
21:15:30,7599071 w3wp.exe 3804 QueryStandardInformationFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS AllocationSize: 8.192, EndOfFile: 7.612, NumberOfLinks: 1, DeletePending: False, Directory: False
21:15:30,7599328 w3wp.exe 3804 ReadFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS Offset: 0, Length: 7.612
21:15:30,7600253 w3wp.exe 3804 UnlockFileSingle C:\WINDOWS\system32\inetsrv\fcgiext.ini RANGE NOT LOCKED Offset: 0, Length: 4.294.967.295
21:15:30,7600437 w3wp.exe 3804 CloseFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS
21:15:30,7602990 w3wp.exe 3804 CreateFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
21:15:30,7603320 w3wp.exe 3804 LockFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS Exclusive: False, Offset: 0, Length: 4.294.967.295, Fail Immediately: False
21:15:30,7603465 w3wp.exe 3804 QueryStandardInformationFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS AllocationSize: 8.192, EndOfFile: 7.612, NumberOfLinks: 1, DeletePending: False, Directory: False
21:15:30,7603700 w3wp.exe 3804 ReadFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS Offset: 0, Length: 7.612
21:15:30,7604426 w3wp.exe 3804 UnlockFileSingle C:\WINDOWS\system32\inetsrv\fcgiext.ini RANGE NOT LOCKED Offset: 0, Length: 4.294.967.295
21:15:30,7604588 w3wp.exe 3804 CloseFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS
21:15:30,7606605 w3wp.exe 3804 CreateFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
21:15:30,7606879 w3wp.exe 3804 LockFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS Exclusive: False, Offset: 0, Length: 4.294.967.295, Fail Immediately: False
21:15:30,7607013 w3wp.exe 3804 QueryStandardInformationFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS AllocationSize: 8.192, EndOfFile: 7.612, NumberOfLinks: 1, DeletePending: False, Directory: False
21:15:30,7607231 w3wp.exe 3804 ReadFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS Offset: 0, Length: 7.612
21:15:30,7608678 w3wp.exe 3804 UnlockFileSingle C:\WINDOWS\system32\inetsrv\fcgiext.ini RANGE NOT LOCKED Offset: 0, Length: 4.294.967.295
21:15:30,7608863 w3wp.exe 3804 CloseFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS
21:15:30,7609905 w3wp.exe 3804 CloseFile C:\WINDOWS\system32\inetsrv\fcgiext.ini SUCCESS
###############
I cannot find any errors when opening the file, so I tend to conclude that fastcgi actually reads the file and then somehow crashes?
Is there anything else I can do or try? Thanks...