session save path issues after php upgrade

Support/Development for PHP
mneese77
Forum Regular
Forum Regular
Posts: 137
Joined: Wed May 12, 2010 5:40 pm

session save path issues after php upgrade

Unread post by mneese77 »

For some reason i have to set my session_save_path directory to 777 after the php upgrade to 5.2.14 for my horde and other software to allow logins...

Th permissions are

Code: Select all

 drwxrwxrwx  2 root apache
Any thoughts on why this change?
dayo
Forum Regular
Forum Regular
Posts: 158
Joined: Sun Jul 12, 2009 1:33 pm

Re: session save path issues after php upgrade

Unread post by dayo »

Either leave it on "777" as you have done or change your php ini to point "session_save_path" to "/tmp".

Not an issue either way.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: session save path issues after php upgrade

Unread post by scott »

It should be set to /var/lib/php/session/ and that directory should be owned by root, and writable by apache.

drwxrwx---. 2 root apache 4096 Apr 30 01:47 session
dayo
Forum Regular
Forum Regular
Posts: 158
Joined: Sun Jul 12, 2009 1:33 pm

Re: session save path issues after php upgrade

Unread post by dayo »

Thanks Scott

Was having the same issues as the OP on my new set up and had changed to "/tmp". It was because I was trying to Apache in a "websvrs" group I create for all webservers (overrode the "Group apache" in httpd.conf) as I tried to setup suexec/fastcgi without the Plesk training wheels of but see there is no need to do that so back to default and now OK.

Counting down the hours to dumping my current host and joining the hardcore by going control paneless for the first time with a new one host. 8)

Got Apache up and going ... just need to hook Nginx up ... hopefully 0.7.67 soon seeing that the ART Repo has finally been getting some love from you lately.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: session save path issues after php upgrade

Unread post by scott »

yup, we get interns in the summer
dayo
Forum Regular
Forum Regular
Posts: 158
Joined: Sun Jul 12, 2009 1:33 pm

Re: session save path issues after php upgrade

Unread post by dayo »

Make sure you work them hard and that you ignore every and any pleas for mercy ... that'll learn 'em quick :D
mneese77
Forum Regular
Forum Regular
Posts: 137
Joined: Wed May 12, 2010 5:40 pm

Re: session save path issues after php upgrade

Unread post by mneese77 »

thanks scott for the clarification...the default
/var/lib/php/session/...drwxrwx---. 2 root apache 4096
works fine for my horde, but a particular slideshow hosting software package doesn't like that so I have pointed that package to the /tmp directory which is 777 anyway. this seems to satisfy everyone at this point.

Thanks dayo for the alternative configuration.
Post Reply