• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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