• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved php sessions files not deleted under ubuntu

Brujo

Silver Pleskian
Plesk Guru
Ubuntu 16.04.4 LTS‬
Product Plesk Onyx Version 17.5.3 Update #42
Several versions of php handler

On my ubuntu system the /var/lib/php is fast growing with thousends of session files which does not get deleted, indeed there was so many files that rm was struggling to delete it at once.

Well I was able to do it manually and created a cronjob, but I am wondering which script - cronjob usualy takes care about to delete old session fles from /var/lib/php ?

I found something about in the KB but just for REL based Systems, but not for ubuntu,
 
had allready seen this, but it seems to be different under ubuntu 16.04

in cron.d there is
Code:
-rw-r--r--   1 root root   670 Mar  1  2016 php

# Look for and purge old sessions every 30 minutes
09,39 *     * * *     root   [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean

-rwxr-xr-x  1 root root 2918 Jun 22  2017 sessionclean

well I see that the cronjob runs every 30 min the sessionclean script in the syslog, but the session files did not get deleted in /var/lib/php
 
Back
Top