Edit /etc/rsyslog.conf $ sudo nano /etc/rsyslog.conf Un-comment cron line cron.* /var/log/cron.log Save file and restart rsyslog $ sudo systemctl resta..
Sometimes you need to add an email to receive alerts and other emails for you system or business. WThen after a while the email account is full of emails. One method to automate this is to set up a cron in cpanel to remove the emails. Here is an example. bin/find /home/cpaneluser/mail/domain.name/emailuser/new -type f -exec ..
The mail sent by your server’s cron jobs are refused by the recipient server due to: “Action: failed Final-Recipient: user;firstname.lastname@example.org Status: 5.0.0 Remote-MTA: dns; inbound.smtp.domain.com Diagnostic-Code: smtp; 553 5.1.8 … Domain of sender address email@example.com does not exist” Crontab will by default send from $LINUX_USER@$HOSTNAME. You can change this by connecting to the server via ..
Currently your messages log is filling up with errors and the system is unstable. Check the message log: $ server# tail -f /var/log/messages Jul 28 08:57:30 mail kernel: EXT4-fs warning (device sda3): ext4_dx_add_entry: Directory index full! Check the sessions directory $ server# php -i | grep session.save_path session.save_path => /var/lib/php/session => /var/lib/php/session $ server# du ..
Sometimes the loads on apache can be high: Set up th efollowin cron job. #MAILTOfirstname.lastname@example.org #02 12 * * 1 /usr/bin/killall -9 httpd && /sbin/service htt..
Check you cron job. Make sure the path are okay. This is likely due to Plesk using a chrooted environment. The user that is executing the script doesn’t have access to PHP. You have a few options: 1. Add PHP to the user’s chroot – http://kb.sp.parallels.com/en/115842 2. Disable the chrooted environment entirely – http://blog.blums.eu/2013/01/25/parallels-plesk-panel-11-non-chrooted-cronjobs 3. ..
How do I view currently setup or all running cron jobs under Linux operating systems? The cron service searches its spool area (usually /var/spool/cron/crontabs) for crontab files (which are named after user accounts); crontabs found are loaded into memory. cron also reads /etc/crontab, which is in a slightly different format. Additionally, cron reads the files ..