Plesk 10.4.4 MU#16 broke old PHP session file removal

Support/Development for PHP
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Plesk 10.4.4 MU#16 broke old PHP session file removal

Unread post by faris »

Errr....so, having installed MU#40 for Plesk 10.4.4 a few days ago and having updated php at the same time on a particular system, I received a call from a customer who is using php-fastcgi to say that there were errors relating to saving session files in his website logs.

To my amazement, I found /var/lib/php/sessions to be root.apache drwxrwx--- just as it should be.

What's more, I never got round to fixing the ownership and permissions on this particular system.

So SOMETHING has automagically fixed the ownership and permissions issue.

But it doesn't explain why the customer is seeing session write errors. I thought this was dealt with autmagically by Plesk when php-fastcgi was used. Ah well. One thing fixed, another broken :-(

QUICK UPDATE: It must be ASL - Scott/Mike have added something without telling us? I've checked 4 systems. 3 ASL ones have correct ownership/perms. One non-ASL one has wrong perms/ownership.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Plesk 10.4.4 MU#16 broke old PHP session file removal

Unread post by scott »

Yeah theres a simple event for it right now, but if something changes it again theres no detection for that yet. What we need to find is some kind of log thats going to see it happen so it would be fixed with a SH rule more reliably.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Plesk 10.4.4 MU#16 broke old PHP session file removal

Unread post by breun »

I think we just need to keep bugging Parallels about this so they stop messing with that directory's group and permissions: bugreport@parallels.com
Lemonbit Internet Dedicated Server Management
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Plesk 10.4.4 MU#16 broke old PHP session file removal

Unread post by breun »

It seems this has been fixed in Plesk 10.4.4 MU#41: http://kb.parallels.com/en/114503
[-] PHP garbage collector can't delete session because of lack of permissions on folder defined in session.save_path directive (114368, 109394)
Lemonbit Internet Dedicated Server Management
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Plesk 10.4.4 MU#16 broke old PHP session file removal

Unread post by breun »

In current Plesk 9, 10 and 11 versions this problem is fixed AFAIK. The latest micro updates at least didn't change /var/lib/php/session and it's still set to mode 0770, user root, group apache for us.
Lemonbit Internet Dedicated Server Management
Post Reply