Hi all, I'm trying to fix a problem with a site which uses sessions. I keep seeing this error in the error log: PHP Warning: session_start(): open(/tmp/sess_6d5f9217920bb7a27c7108fec4587a20, O_RDWR) failed: Permission denied (13) in /home/public_html/includes/inc.php on line 1697 Code (markup): inc.php is the main site include, which is included on every page. The session handling bit looks like this: if ($ss != "") { session_id($ss); } session_start(); Code (markup): The variable $ss is used to pass the session id between the http: and https: sections of the site. Any idea as to why I'm getting this warning? Sessions are being created fine for both http and https. The only other possibly relevant bit of info is that it's set to use_only_cookies. Happy to provide more info if necessary. TIA
Ok, we recently had a customer run into this problem. Are you making use of PHP4 as well as PHP5 on your site? If so are you making sure to use session_name on for the PHP4 and PHP5 parts? Otherwise what happens in most configurations anyways the PHP4 is an apache module and it creates the nobody user. Then the PHP5 configuration attempts to use the session and it cannot. The same the other way the PHP4 cannot access the PHP5 session either. This is all due to the session file ownership PHP4 uses nobody and PHP5 uses your username.
But sessions are working just fine, and the session files are being written and read to the /tmp directory *&most* of the time without any errors.