bon733
Posts: 25
|
| Posted: 09/03/2005, 9:26 PM |
|
I cannot generate a page because I am receiving the following error.
Warning: session_start(): open(C:\Program Files\PHP\sessiondata\sess_8e0363fdb64b20ad92cdc63c507f5830, O_RDWR) failed: Permission denied (13) in C:\Websites\FillInForms\Common.php on line 9
|
 |
 |
Alvaro Cobo
|
| Posted: 09/04/2005, 12:15 AM |
|
I don´t know how does it works in Windows, but I had the same problem in
Linux, and it was solved changing the permission of the folder where the
session variable is stored, to the webserver user:
In linux:
chown -Rf apacheuser /folder/which/gives/problem/
chmod -Rf 755 /folder/which/gives/problem/
In your case: (C:\ProgramFiles\PHP\sessiondata\)
Hope this helps,
Regards,
Alvaro
"bon733" <bon733@forum.codecharge> escribió en el mensaje
news:5431a775ec8f38@news.codecharge.com...
> I cannot generate a page because I am receiving the following error.
>
> Warning: session_start(): open(C:\Program
> Files\PHP\sessiondata\sess_8e0363fdb64b20ad92cdc63c507f5830, O_RDWR)
failed:
> Permission denied (13) in C:\Websites\FillInForms\Common.php on line 9
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 09/04/2005, 1:14 PM |
|
It's the same in Windows. "Permission denied" means that permission is denied
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
bon733
Posts: 25
|
| Posted: 09/04/2005, 6:38 PM |
|
Thank you for your responses. My goal was to find out how to clear up the error. Since I was using XP Pro on a laptop and had no option to allow write permission because of the way security was configured (which no one new about) I found an answer on another forum. It is as follows:
--------------------------------
I'm running an IIS server on XP Pro, not in a domain, and I have PHP installed on it. I had the exact same error:
...PHP\sessiondata\sess_......, O_RDWR) failed: Permission denied (13) in Unknown on line 0.
The problem is that you need to set the PHP\sessiondata directory to read/write. That's done by right-clicking on the directory (in Explorer), selecting properties, and clicking on the ensuing window's security tab. The problem is that the security tab won't show up by default, unless your PC is part of a domain. To make it appear, open the "Folder Option" applet in the Control Panel, click on the "View" tab, and clear the "Use simple file sharing (Recommended)" check box
------------------------------
.
|
 |
 |
|