session_start() [function.session-start]: open(, O_RDWR) failed: Permission denied

hostvision

Member
Jul 22, 2005
14
1
153
Romania
cPanel Access Level
Root Administrator
Hello,

I have 2 new server running with cpanel. One is PHP5.1.6 and one PHP4.4.4. An I get the same errors on both:

Warning: session_start() [function.session-start]: open(/tmp/sess_18729d25863689e6676fe25b6942ae56, O_RDWR) failed: Permission denied (13) in /home/pnl/public_html/index.php on line 2

...
...
What I find out is that once you start an session with one user (one website) and browse other website on the same server you get this error. The session php try to write is the same used for previous user and is own by previous user. Once you close the browser window and the session is destroyed the error is gone till browse other website on the same server.

Thanks.
 

Manuel_accu

Well-Known Member
Jun 19, 2005
191
0
166
Hi,

what is the value of session.save_path in php.ini and set the correct permission in it.

This setting controls the location of server-side session cookies when your script uses PHP's session management functions


Thanks,
 

hostvision

Member
Jul 22, 2005
14
1
153
Romania
cPanel Access Level
Root Administrator
Hi,

I think is some kind of protection in apache. When I recive the error I used /~user/. I tried with domain name and everything is ok. Apache version is 1.3.37 on both servers.
I'll monitor this issue for a while...
 

hostvision

Member
Jul 22, 2005
14
1
153
Romania
cPanel Access Level
Root Administrator
Hi,

For the moment I solved the problem. I think is from Imap Module (Version 2004g) or Openssl Support (less probable). I only got a good PHP without these modules.
If someone find anything else please post it.