Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After updating PHP on my IIS 7 server, I am getting authentication error. The website is using Windows Authentication.

I updated from a PHP 5.2.14 to 5.3.8 using the Web Platform Installer. Once the sessions expired for everybody, none could log in again using their windows password.

I tried to change the security setting of the php installation folder, but it did not work.

Is there is another folder for php that I need to give access to my group of users?

I changed the security of the temp folder to add the users group so that they can create a session, but it still fail. Should I move my session path folder?

[02-Dec-2011 11:16:42] PHP Warning:  session_start(): open(C:\Windows\temp\sess_5dvl2s68jtu1tb3ecfcobpor23, O_RDWR) failed: Permission denied (13) in C:\inetpub\vhost\httpdocs\admin\lib\lang.php on line 2
[02-Dec-2011 11:16:43] PHP Warning:  Unknown: open(C:\Windows\temp\sess_5dvl2s68jtu1tb3ecfcobpor23, O_RDWR) failed: Permission denied (13) in Unknown on line 0
[02-Dec-2011 11:16:43] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\Windows\temp) in Unknown on line 0
share|improve this question
Could you post the errors you get from the php_error.log ? – Jonathan Rioux Dec 2 '11 at 16:10
up vote 2 down vote accepted

Does the account that IIS is running under (IUSER_INETPUB or whatever it is) have write permissions on C:\Windows\Temp?

It may either not have permission to access anything in C:\Windows, or be explicitly denied any rights. You may want to create another directory elsewhere (C:\PHPSessions, maybe) and explicitly grant read/write (but NOT execute) permissions to the IIS account on that directory.

share|improve this answer
Oh crap, talk about a coincidence. While I updated PHP on Windows, the password for the users group all expired. – Pierre-Alain Vigeant Dec 2 '11 at 19:14
You really should have attributed this answer to where you copied it from ( – Sir Crispalot Oct 24 '12 at 8:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.