penguin Posted April 8, 2003 Share Posted April 8, 2003 hi im trying to run oscommerce with ssl on a diferent server. all paths are well configured but i get this error when trying to sign in: Warning: session_start() [function.session-start]: open(/tmp/sess_3ea42bb93229b0d2320e4cca2f97a067, O_RDWR) failed: Permission denied (13) in /home/www/safesite/nircom/catalog/includes/functions/sessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/www/safesite/nircom/catalog/includes/functions/sessions.php:67) in /home/www/safesite/nircom/catalog/includes/functions/sessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/www/safesite/nircom/catalog/includes/functions/sessions.php:67) in /home/www/safesite/nircom/catalog/includes/functions/sessions.php on line 67 now i asked my hosmaster for help and this was hes replay This happens because the secure and non-secure webservers run as different users: The secure server runs as User Nobody, Group Nobody. The non-secure server runs as the user (in this case, User Nircom, Group Nircom). Now more in depth as to why this doesn't work. When non-secure, a session ID was written to the /tmp directory with permissions for nircom/nircom to read the file, no one else. When it switches to secure mode, the user Nobody/nobody does not have ANY permission to read the file, so it fails with the error you see. any help would be life saving. thnaks Link to comment Share on other sites More sharing options...
toolcrazy Posted April 8, 2003 Share Posted April 8, 2003 Where are your sessions being stored? If you are storing them to a file, try and move them to the database. Steve ------------------------- Link to comment Share on other sites More sharing options...
skeemer Posted August 12, 2003 Share Posted August 12, 2003 I had this same problem, and that does fix it. Just had to change define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' to define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' in /includes/configure.php Um.....yeah, I'm the new guy. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.