Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] OT - Need help with PHP 2.0 [SOLVED] Michael Sullivan <michael@××××××××××××.com>