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
link|improve this question

75% accept rate
Could you post the errors you get from the php_error.log ? – Jonathan Rioux Dec 2 '11 at 16:10
feedback

1 Answer

up vote 1 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.

link|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
feedback

Your Answer

 
or
required, but never shown

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