Skip to content

Linux Problems and Solutions

A Solutionist

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

Tag: cron

Posted onAugust 20, 2019Uncategorized

Letsencrypt renew cron for Nginx CentOS / Ubuntu

by Navdeep SinghLeave a comment on Letsencrypt renew cron for Nginx CentOS / Ubuntu

crontab -e @monthly letsencrypt-auto certonly –email [email protected] –agree-tos –webroot –renew-by-default -w /home/the-d2/public_html/ -d the-d2.com -d www.the-d2.com –authenticator webroot ; nginx -t && /etc/init.d/nginx reload

Read More
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
  • Magento
  • Migration
  • Powershell Scripts
  • R1soft
  • Solved
  • Uncategorized
  • Visual Studio
  • VMware
  • Windows
  • Zimbra

Recent Posts

  • [Solved] Error: SET PASSWORD has no significance for user ‘root’@’localhost’ as the authentication method
  • Login Form with If Else in VB .Net, Windows Application Form | Visual Studio 2022
  • Install netstat command from net-tools package on Ubuntu 22.10
  • How to Change RDP port in Windows Server via Powershell CLI
  • How to block all bots in Nginx Vhost conf

Most Viewed Posts

  • ✅ Install PHP 8.0 on CentOS 8 / RHEL 8 (17,646)
  • [Solved] R1soft build module issue for CentOS kernel 4.4.112 – hcpdriver-cki-4.4.112-1.el6_.elrepo.x86_64.ko (9,461)
  • [Solved] urllib3 (1.25.3) or chardet (2.2.1) doesn’t match a supported version! (3,972)
  • Install OCS Inventory Agent on CentOS 7 (3,508)
  • [Solved] Connection to Redis failed after x failures Client.php Credis_Client->connect (3,255)
  • [Solved] Fatal error: Uncaught CredisException: Connection to Redis 127.0.0.1:6379 failed. Last Error : (111) Connection refused (2,952)
  • [SOLVED] FAILED R1soft HCP module hcpdriver-cki-4.18.0-193.14.2.el8_2.x86_64.ko on CentOS 8 (2,727)
  • Install MySQL 5.7 on CentOS via Ansible – Playbook .yml (2,727)
  • How to Install R1Soft Agent on CentOS 8 (2,698)
  • List of Processes consuming most of the RAM/Memory with ps command – Linux (2,261)

Privacy Policy | Terms & Conditions | Cookie Policy
Amphibious Theme by TemplatePocket ⋅ Powered by WordPress