php-install Digest 15 Dec 2002 23:38:11 -0000 Issue 1163

Topics (messages 9401 through 9401):

Session Handling Issues
        9401 by: R. Stavros Bezas

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
System : Freshly installed openBSD 3.2
PHP : 4.2.3
Apache : 1.3.26
Summary of questions asked:
-Is the error due to permissions ?
-Which user does php use in this case?
-What can I do to give apache/php access to write to tmp besides what I have already 
done?
-What service / file do I need to restart or run to activate changes in php.ini?
-Is this a known error for Squirrelmail? Have others encountered this before?

For reference, I am cross posting a previous post that details many of my php install 
issues, albeit that I think they are not relative to the problem, one might. That post 
can be found here 
(http://www.openbsdforums.org/forums/showthread.php?s=&threadid=5169) Throughout MUCH 
trial and error I have been succoming to this very very bad error when i access 
login.php

Warning: open(/tmp/sess_7e58f5c69023993bb908c372240be17c, O_RDWR) failed: No such file 
or directory (2) in /htdocs/squirrelmail/src/global.php on line 134

Upon hitting login I get more, seeming to be more relative to the inital problem.

Warning: open(/tmp/sess_18f7a0d772ec65f8b5e41af536ef797a, O_RDWR) failed: No such file 
or directory (2) in /htdocs/squirrelmail/src/redirect.php on line 47

Warning: open(/tmp/sess_18f7a0d772ec65f8b5e41af536ef797a, O_RDWR) failed: No such file 
or directory (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting 
of session.save_path is correct (/tmp) in Unknown on line 0

Now, after MUCH research and heartache and I believe I have isolated the problem to 
session handling and it seems as if php/www doesn't have access to write to /tmp. For 
reference, here is my session handling portion of php.ini:

[Session]
; Handler used to store/retrieve data.
session.save_handler = files
; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = /tmp
; Whether to use cookies.
session.use_cookies = 1
; Name of the session (used as cookie name).
session.name = PHPSESSID
; Initialize session on request startup.
session.auto_start = 0

There is more but in the interests of message size I will omit it. The permissions on 
/tmp are 777 and owned by root and grouped by wheel. My webuser is www and webgroup is 
www as well. I was not sure if www was the user/group used by php and if so able to 
write to /tmp with being owned by root, but for the sake of argument I changed 
ownership and group both to www. When that did not work, i returned it to normal. 
Another interesting point is that when i change the save path to something else the 
error still remains at /tmp, so what do i restart to make the changes take effect, 
even a reboot did not change it. Please advise! Page can be viewed at 
www.bezas.com/squirrelmail/


Thanks in advance,
Stavros Bezas
www.bezas.com
--- End Message ---

Reply via email to