• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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