FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » problem with session cleanup
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: problem with session cleanup [message #170156 is a reply to message #170137] Wed, 13 October 2010 08:10 Go to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 12/10/2010 13:25, bill escribió/wrote:
> occasionally when I use an application I am developing I get the
> following error:
> Notice: session_start() [function.session-start]: ps_files_cleanup_dir:
> opendir(/var/lib/php5) failed: Permission denied (13) in
> /var/www/MP2010-v2/challenge.php on line 2
>
> This started when I upgraded Ubuntu from relase 9.10 to 10.04.
>
> my directory has the following permissions
> drwx-wx-wt 2 root root 4096 2010-10-12 07:19 php5
>
> First question: what is wrong and how do I fix it.
> 2nd question: what is a t for other execute permission ?

If I recall correctly, Ubuntu disables the PHP builtin session cleanup.
Instead, it relies on a shell script that runs via cron with root
credentials. That's why no one else but root is allowed to write into
/var/lib/php5.

You need to make sure that the built-in cleanup remains disabled. Find
the "session.gc_probability" directive in your php.ini file and set it
to zero.



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: php://memory and php://temp
Next Topic: Interpret SimpleXMLElement Object
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 03:53:55 GMT 2024

Total time taken to generate the page: 0.03777 seconds