Issues with PHP 5.3 and sessions folder

后端 未结 4 744
一整个雨季
一整个雨季 2020-11-29 18:10

I recently upgraded to PHP 5.3 and since then I get (sporadic) error messages which indicate Apache (or may be the cleaner of the session files) has no permissions to the fo

4条回答
  •  无人及你
    2020-11-29 18:39

    The fix: In your php.ini set session.gc_probability to 0

    The cause I believe I found the answer here http://somethingemporium.com/2007/06/obscure-error-with-php5-on-debian-ubuntu-session-phpini-garbage

    Essentially, the garbage collection is set up to be done by cron jobs on some systems (i.e. Ubuntu/Debian). Some php ini executables like php-cli also try to do garbage collection and that results in the error you got.

提交回复
热议问题