• 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.

Php session files problem - more than 4Gb session files

MakMakMak

New Pleskian
Hello,
I have 2 servers with CentOS 6.5 and with PHP 5.3.3 and with last version of Plesk in both. I have big problem with session files from path /var/lib/php/session
I have more than 4Gb in that folder and all files are session files which aren't deleted. How I to solve problem with this sessions which do not auto delete?
php.ini is default. I set default 30 minutes to be idle sessions in Server / Plesk settings page.

Can you reccomend me some script or code to run some time to delete expired sessions?

How to make that file to work with cron?

I find this code
http://budiwijaya.net/tips-to-delete-sessions-file-of-php-in-centos-5-5.html
but I don't know how it to work into my server (or do it can to work into my server).

Thank you
 
Thank you for reply.

I run it but only wait several minutes and nothing happened, all files are still there. No deleted files.
 
Back
Top