Click to See Complete Forum and Search --> : PHP session path


lmurillo
08-18-2004, 03:30 PM
Hi.
I´m really new installing php on servers.
I´ve made some pages which use session_start function, but when i use the page, the next error appears:

Warning: session_start() [function.session-start]: open(D:\Soporte\PHP_Files\Sesiones\sess_76d2f132ab07ec6f8345d3f0d30ac300, O_RDWR) failed: Permission denied (13) in c:\Inetpub\wwwroot\newImage\verificaClave.php on line 13

Php has been installed over a XP prof, with IIS, not apache. And the storage path for sessions is on othe partition of the HD.

My configuration file says that i´ve Session.support enabled, and session.auto_start=off

i don't know if is mandatory, that i put together the php cgi path, and session path, both paths over the same partition.

ZibingsCoder
08-18-2004, 03:49 PM
You need to add your IIS user to the people allowed to edit files in that directory (I believe...know very little about XP Prof). Like it says, permission denied.

goldbug
08-18-2004, 05:33 PM
Originally posted by ZibingsCoder
You need to add your IIS user to the people allowed to edit files in that directory (I believe...know very little about XP Prof). Like it says, permission denied.

Exactly. More specifically, right click on the directory in question (session dir), choose properties; click on security tab, add permissions for "Internet Guest Account" aka "IUSR_<Machinename>"

lmurillo
08-19-2004, 01:43 PM
Well, thanks. In fact the user for internet was already created, but it was missing the WIRTE MODE... hehe

THanks.