Windows Server 2003 met IIS6 en PHP = Access is denied

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

  • Icey
  • Registratie: November 2001
  • Laatst online: 31-07 09:54
Op mijn test machine was het vrij eenvoudig, na enkele muisklikken zorgde de "Microsoft Web Platform Installer" ervoor dat PHP zonder problemen ging werken in mijn Windows XP omgeving. Nu probeer ik echter PHP op eenzelfde manier in een reeds bestaande omgeving te installeren maar daar gaat het toch niet helemaal goed.

Zodra ik een .php bestand aanspreek krijg ik de volgende error;

code:
1
2
3
4
5
6
7
8
9
10
11
FastCGI Error
The FastCGI Handler was unable to process the request.

Error Details:

    * Unable to place a FastCGI process in a JobObject. Try disabling the Application Pool CPU Limit feature
    * Error Number: 5 (0x80070005).
    * Error Description: Access is denied.

HTTP Error 500 - Server Error.
Internet Information Services (IIS)


Dat klinkt vrij eenvoudig als een rechten probleem dus als eerste stap heb ik gekeken naar de "Application Pool Identity" welke ingesteld staat op de gebruiker "Network Service". Nu heb ik zowel "C:\Program Files\PHP" als de directory met mijn PHP bestand de "Network Service" de "Read & Execute" rechten gegeven. Voor de zekerheid heb ik toen IIS opnieuw opgestart maar helaas, dat mocht niet baten...

Als volgende stap heb ik de Microsoft Process Monitor gebruikt om te kijken of er misschien problemen zijn waar hij tegenaan loopt.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
10:33:30.7327145    w3wp.exe    4224    CreateFile  C:\Inetpub\fictieve.website.nl\index.php    SUCCESS Desired Access: Generic Read, Disposition: Open, Options: , Attributes: RE, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: DOMEINNAAM\IUSR_SERVER, OpenResult: Opened  c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7329088    w3wp.exe    4224    QueryInformationVolume  C:\Inetpub\fictieve.website.nl\index.php    SUCCESS VolumeCreationTime: 10/5/2007 17:50:34, VolumeSerialNumber: B87D-C4EE, SupportsObjects: True, VolumeLabel:  c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7330295    w3wp.exe    4224    QueryAllInformationFile C:\Inetpub\fictieve.website.nl\index.php    BUFFER OVERFLOW CreationTime: 9/8/2010 09:07:57, LastAccessTime: 9/8/2010 10:09:47, LastWriteTime: 9/8/2010 10:07:14, ChangeTime: 9/8/2010 10:29:42, FileAttributes: A, AllocationSize: 24, EndOfFile: 23, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0x14000000007351, EaSize: 0, Access: Generic Read, Position: 0, Mode: , AlignmentRequirement: Byte    c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7331428    w3wp.exe    4224    CloseFile   C:\Inetpub\fictieve.website.nl\index.php    SUCCESS     c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7335640    w3wp.exe    4224    CreateFile  C:\Program Files\PHP\php-cgi.exe    SUCCESS Desired Access: Read Data/List Directory, Execute/Traverse, Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened   c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7336973    w3wp.exe    4224    CreateFileMapping   C:\Program Files\PHP\php-cgi.exe    SUCCESS SyncType: SyncTypeCreateSection, PageProtection: PAGE_EXECUTE   c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7337368    w3wp.exe    4224    CreateFileMapping   C:\Program Files\PHP\php-cgi.exe    SUCCESS SyncType: SyncTypeOther c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7338774    w3wp.exe    4224    QuerySecurityFile   C:\Program Files\PHP\php-cgi.exe    SUCCESS Information: Owner, Group, DACL, SACL   c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7339967    w3wp.exe    4224    QueryBasicInformationFile   C:\Program Files\PHP\php-cgi.exe    SUCCESS CreationTime: 7/27/2010 10:50:00, LastAccessTime: 9/8/2010 10:31:24, LastWriteTime: 7/27/2010 10:50:00, ChangeTime: 9/8/2010 10:27:59, FileAttributes: A    c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7340983    w3wp.exe    4224    QueryStandardInformationFile    C:\Program Files\PHP\php-cgi.exe    SUCCESS AllocationSize: 49,152, EndOfFile: 45,131, NumberOfLinks: 1, DeletePending: False, Directory: False c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7344586    w3wp.exe    4224    CreateFile  C:\Program Files\PHP\php-cgi.exe.Manifest   NAME NOT FOUND  Desired Access: Generic Read/Execute, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, AllocationSize: n/a   c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7345788    w3wp.exe    4224    QueryOpen   C:\Program Files\PHP    SUCCESS CreationTime: 9/8/2010 09:06:26, LastAccessTime: 9/8/2010 10:33:30, LastWriteTime: 9/8/2010 09:07:08, ChangeTime: 9/8/2010 09:36:38, AllocationSize: 0, EndOfFile: 0, FileAttributes: D c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7346568    w3wp.exe    4224    QueryNameInformationFile    C:\Program Files\PHP\php-cgi.exe    BUFFER OVERFLOW Name: \P    c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7346704    w3wp.exe    4224    QueryNameInformationFile    C:\Program Files\PHP\php-cgi.exe    SUCCESS Name: \Program Files\PHP\php-cgi.exe    c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7347105    w3wp.exe    4224    Process Create  C:\Program Files\PHP\php-cgi.exe    SUCCESS PID: 4716, Command line: "C:\Program Files\PHP\php-cgi.exe" c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7348898    w3wp.exe    4224    CloseFile   C:\Program Files\PHP\php-cgi.exe    SUCCESS     c:\windows\system32\inetsrv\w3wp.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7349398    php-cgi.exe 4716    QueryNameInformationFile    C:\Program Files\PHP\php-cgi.exe    SUCCESS Name: \Program Files\PHP\php-cgi.exe    C:\Program Files\PHP\php-cgi.exe    NT AUTHORITY\NETWORK SERVICE
10:33:30.7351064    php-cgi.exe 4716    Load Image  C:\Program Files\PHP\php-cgi.exe    SUCCESS Image Base: 0x400000, Image Size: 0xb000    C:\Program Files\PHP\php-cgi.exe    NT AUTHORITY\NETWORK SERVICE


Zo te zien zijn er drie dingen waar mogelijk iets mee aan de hand kan zijn;

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Date & Time:    9/8/2010 10:33:30
Event Class:    File System
Operation:  QueryAllInformationFile
Result: BUFFER OVERFLOW
Path:   C:\Inetpub\fictieve.website.nl\index.php
TID:    812
Duration:   0.0000061
CreationTime:   9/8/2010 09:07:57
LastAccessTime: 9/8/2010 10:09:47
LastWriteTime:  9/8/2010 10:07:14
ChangeTime: 9/8/2010 10:29:42
FileAttributes: A
AllocationSize: 24
EndOfFile:  23
NumberOfLinks:  1
DeletePending:  False
Directory:  False
IndexNumber:    0x14000000007351
EaSize: 0
Access: Generic Read
Position:   0
Mode:   
AlignmentRequirement:   Byte

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
Date & Time:    9/8/2010 10:33:30
Event Class:    File System
Operation:  CreateFile
Result: NAME NOT FOUND
Path:   C:\Program Files\PHP\php-cgi.exe.Manifest
TID:    812
Duration:   0.0000181
Desired Access: Generic Read/Execute
Disposition:    Open
Options:    Synchronous IO Non-Alert, Non-Directory File
Attributes: n/a
ShareMode:  Read
AllocationSize: n/a

code:
1
2
3
4
5
6
7
8
Date & Time:    9/8/2010 10:33:30
Event Class:    File System
Operation:  QueryNameInformationFile
Result: BUFFER OVERFLOW
Path:   C:\Program Files\PHP\php-cgi.exe
TID:    812
Duration:   0.0000052
Name:   \P


Kan iemand mij misschien de goede weg op helpen? Mis ik nog een bepaalde gebruiker op een bepaald bestand o.i.d.? Of heb ik de hele foutmelding verkeerd begrepen en ligt het helemaal niet aan de gebruikersrechten?

Acties:
  • 0 Henk 'm!

  • Icey
  • Registratie: November 2001
  • Laatst online: 31-07 09:54
Hmm, misschien had ik toch beter moeten lezen... na het uitschakelen van de CPU Monitor werkt het gek genoeg prima. Nu maar eens uitvinden waar dat door komt.