Thread: PHP session.gc_probability = ?
hello,
have been noticing bug in 1 of websites reads as:
error 8: session_start() [function.session-start]: ps_files_cleanup_dir: opendir(/var/lib/php5) failed: permission denied (13)
0 error occurred on in function session_start
1 called line 333 of file session.php in function require_once
now... if on google, old post this:
http://somethingemporium.com/2007/06...phpini-garbage
...which in short tells me undebian sitting in php.ini , need set session.gc_probability 0, because usual function won't work due file permission restrictions , crontab in place cleanup me.
thing is, on ubuntu server 10.04 amd64, session.gc_probability set 1. have checked friend has fresh, clean install , session.gc_probability set 1. yet file permissions still set restrictively , crontab right there!
have set session.gc_probability 0 rid of error, not sure if there wrong setting or not? should file bug report session.gc_probability configured incorrectly? file permissions problem somehow overcome in ubuntu? did unknowingly set setting wrong way in ubuntu because error pops low probability?
help?
lp,
jure
here related config options php.ini. compare them yours, directory permissions.
session.gc_probability = 1
session.gc_divisor = 1000
session.save_path commented, phpinfo() shows it's defaulting /var/lib/php5
ls -l /var/lib | grep php5
drwx-wx-wt 2 root root 4096 2010-08-28 13:39 php5
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] PHP session.gc_probability = ?
Ubuntu
Comments
Post a Comment