php individual tmp sessions not deleted
Hi,
On my ISPCONFIG server (running on debian 5), I have a little problem with the automatic deletion of tmp files that are in /var/www/clients/clientX/webX/tmp/
In the /etc/php5/apache2/php.ini file, I have :
; This is disabled in the Debian packages, due to the strict permissions
; on /var/lib/php5. Instead of setting this here, see the cronjob at
; /etc/cron.d/php5, which uses the session.gc_maxlifetime setting below.
; php scripts using their own session.save_path should make sure garbage
; collection is enabled by setting session.gc_probability
;session.gc_probability = 0
session.gc_divisor = 100
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440
The cronjob /etc/cron.d/php5 runs every 30 minutes but it delete only tmp files that are in /var/lib/php5
Since all my website have a apache directive :
php_admin_value session.save_path /var/www/clients/client1/web1/tmp
There are many location for tmp files. And so the problem is that all tmp files of each website are not deleted.
Do you know what to do ?
- Should I enabled "session.gc_probability = 1" in my php.ini ?
- Should I remove the session.save_path for each website ?
- Should I write a script to manually delete tmp files ?
Sincerely,
Jerome
|
Recent comments
22 hours 28 min ago
1 day 7 hours ago
1 day 8 hours ago
1 day 12 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 19 hours ago
2 days 5 hours ago
2 days 10 hours ago
2 days 11 hours ago