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 |