php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57789 IIS/FastCGI permission errors on locks in C:\temp
Submitted: 2007-08-17 09:21 UTC Modified: 2007-08-26 03:02 UTC
From: php at fklee dot name Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.2.1 OS: Windows 2003serveur
Private report: No CVE-ID: None
 [2007-08-17 09:21 UTC] php at fklee dot name
Description:
------------
APC ver 3.0.13 - 3.0.14 (many version tested and last CVS)
PHP 5.2.3 (CGI)
IIS6

When using IIS-Windows Authentification, 

If a user who is NOT an administrator of the machine, this produce a "CGI error".

Look like if APC is trying to write or lock a file and he hasn't the rights to do it. (wile being a non admin of the serveur)

When using no authentification (with IUSR-SERV-NAME) there is no problem.


Reproduce code:
---------------
1. Windows 2003 serveur
2. IIS
3. PHP 5.2.3 CGI mode
4. APC many tested version 
5. Authentification with windows auto-authentification

5. get a phpinfo()



Expected result:
----------------
normal phpinfo() with APC running

Actual result:
--------------
result :

CGI error in navigator

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-17 09:47 UTC] php at fklee dot name
There no problem with user in "power_user" group.
 [2007-08-18 16:46 UTC] gopalv82 at yahoo dot com
You might want to try building APC with --enable-apc-pthreadmutex

Pthread locks might work better than fcntl("C:\TEMP\apc_lock.0"), which is what I think is happening here ?
 [2007-08-19 05:27 UTC] php at fklee dot name
Thank you for the info, but I can't compile APC... Only get dll from "peclwin32". Is there any other solution ?
 [2007-08-20 06:40 UTC] php at fklee dot name
I found it is possible if you add "domain users" modifiy rights on "c:\windows\temp".

So everyone in domain as acces in this directory.
 [2007-08-26 03:02 UTC] gopalv82 at yahoo dot com
changing the subject to keep search context
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 11:01:30 2024 UTC