Gentoo Archives: gentoo-user

From: Michael Sullivan <michael@××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT - Need help with PHP 2.0 [SOLVED]
Date: Fri, 22 Sep 2006 03:38:31
Message-Id: 1158895999.5997.61.camel@bullet.espersunited.com
In Reply to: Re: [gentoo-user] OT - Need help with PHP 2.0 by Mark Kirkwood
1 On Fri, 2006-09-22 at 14:25 +1200, Mark Kirkwood wrote:
2 > Michael Sullivan wrote:
3 > > My script uses sessions, and as a result each script begins with
4 > > session_start(); right after the opening <? . Now I'm getting these:
5 > >
6 > > This is the info page. There's nothing here yet.
7 > > Warning: Unknown: open(/tmp/sess_c2795262928933c671af3a6015ff80fe,
8 > > O_RDWR) failed: Permission denied (13) in Unknown on line 0
9 > >
10 > > Warning: Unknown: Failed to write session data (files). Please verify
11 > > that the current setting of session.save_path is correct (/tmp) in
12 > > Unknown on line 0
13 > >
14 > > I looked up /tmp/sess_c2795262928933c671af3a6015ff80fe:
15 > >
16 > > bullet ~ # ls -l /tmp/sess_c2795262928933c671af3a6015ff80fe
17 > > -rw------- 1 apache apache 459 Sep 21
18 > > 19:49 /tmp/sess_c2795262928933c671af3a6015ff80fe
19 > >
20 > > Because I'm using mod_suphp and the executing script is located at
21 > > http://www.espersunited.com/~festival/login.php , shouldn't the file be
22 > > owned by festival? I checked session.save_path in every php.ini file I
23 > > have on the system to make sure that session.save_path was indeed set
24 > > to /tmp; it was. Any hints on how to fix this?
25 > >
26 >
27 > A page here:
28 >
29 > http://www.directadmin.com/forum/showthread.php?s=a6485e9b9cc3edabb99c1ab2191d54a4&postid=60002
30 >
31 > suggests that you may being bitten by pre-existing session files, and if
32 > you delete or chmod 'em you'll be fine from now on....
33 >
34 > I suspect some messing with umask may be needed too (note your original
35 > setup specified umask=0077). There should be something in the suphp doco
36 > about this sort of thing [ he states w/o looking :-) ]
37 >
38 > regards
39 >
40 > Mark
41 Deleting it did the trick! Thanks. I should've thought of that...
42 -Michael Sullivan-
43
44
45 --
46 gentoo-user@g.o mailing list