Skip to content

Linux Problems and Solutions

A Solutionist

Menu
  • Powershell Scripts
  • Bash Scripts
  • Zimbra
  • Ansible
  • Magento
  • About Me

Tag: session

Posted onJune 16, 2019Uncategorized

How to delete Magento session_ files older than 30 days with cron

by Navdeep SinghLeave a comment on How to delete Magento session_ files older than 30 days with cron

Manual command (in screen) find /home/the-d2.com/public_html/var/session/ -type f -name “sess*” -mtime +30 -exec rm -f {} \; >/dev/null 2>&1 Cron 0 0 * * * find /home/the-d2.com/public_html/var/session/ -type f -name “sess*” -mtime +30 -exec rm -f {} \; >/dev/null 2>&1

Read More

Categories

  • Ansible
  • Bash Scripts
  • How to Install
  • Jobs
  • Magento
  • Migration
  • Powershell Scripts
  • R1soft
  • Solved
  • Uncategorized
  • VMware
  • Windows
  • Zimbra

Recent Posts

  • [Solved] Error: rpmdb open failed /var/lib/rpm ERROR DB_RUNRECOVERY: Fatal error, run database recovery
  • [Solved] There was an error loading or playing the video in Firefox
  • How to Install AppGate Client on Ubuntu 20/18/16
  • How to install Redis server on CentOS 8
  • Install MariaDB 10.5 on CentOS 8

Most Viewed Posts

  • ✅ Install PHP 8.0 on CentOS 8 / RHEL 8 (5,099)
  • [Solved] R1soft build module issue for CentOS kernel 4.4.112 – hcpdriver-cki-4.4.112-1.el6_.elrepo.x86_64.ko (3,565)
  • List of Processes consuming most of the RAM/Memory with ps command – Linux (1,911)
  • [SOLVED] FAILED R1soft HCP module hcpdriver-cki-4.18.0-193.14.2.el8_2.x86_64.ko on CentOS 8 (1,859)
  • How to Install R1Soft Agent on CentOS 8 (1,808)
  • How to install CDP/R1soft on a CentOS 6/7 server (1,667)
  • [Solved] Connection to Redis failed after x failures Client.php Credis_Client->connect (1,469)
  • Install OCS Inventory Agent on CentOS 7 (1,125)
  • [Solved] urllib3 (1.25.3) or chardet (2.2.1) doesn’t match a supported version! (842)
  • [Solved] Error getting authority: PolicyKit1′: timed out (g-dbus-error-quark, 20) (684)
Amphibious Theme by TemplatePocket ⋅ Powered by WordPress