cronjob

  1. benito

    SOLVED cronjob error message

    Hello! Since a couple of days I'm getting one daily email with this: /etc/cron.daily/summarize-api1-logs: Can't locate Cpanel/Analytics/KnownPages/Api1.pm in @INC (you may need to install the Cpanel::Analytics::KnownPages::Api1 module) (@INC contains: /var/cpanel/perl /usr/local/cpanel...
  2. M

    Why doesn't this Cronjob instruction run?

    I have a long standing cronjob running on a cPanel account. Recently I have added a second cronjob instruction to make two in total. They are here: ONE: */5 22-23,0-1 * * * /usr/local/bin/php /home/account/crons/cron_mailer.php...
  3. O

    SOLVED deleted crontab jobs by mistake

    Hi I am running CentOS v7.9.2009 STANDARD xen hvm with cPanel Version 106.0.10 We deleted the whole crontab jobs by mistake, can anyone share the default jobs? or is there any way to have the WHM to regenerate them (via forcing a system update or some thing like this)? Thank you.
  4. R

    run a php file every 10 seconds

    Hello everyone, I need to execute a php file from one every 10 seconds, I can't use cron since it only supports every 1 minute, what solution can you give me?... The example url is this https://www.mylink.com/shop/crons/cron.php
  5. S

    Cannot get cronjob to run in cpanel

    Hi, I have spend many days trying to get to the bottom of why my cron job wont run in cpanel. I am using a component called Acymailing and the cron jobhas stopped working. I don't know if it is a php thing (I am on php 8.0) or an issue with something on the server (I have a dedicated server)...
  6. M

    Cronjob timing issue on CPanel interface

    I have a cronjob timing I want to set up as this: */4 0-1/1,22-23/1 * * * explanation: This cronjob runs every 4th minute of hours 22,23,0,1 on every given day. This cronjob appears to be correct (crontab guru link) but the WHM/Cpanel interface states that "0-1/1,22-23/1" is " You did not...
  7. M

    SOLVED Setting up PHP cron jobs to run as each user account

    I'm trying to figure out the best way to solve this issue. An account is trying to set up cron jobs tasks that will use PHP scripts with mkdir. The issue is this returns a permission denied. I know I can resolve this by setting a root cron job on the server for the account but is there a simple...
  8. benito

    In Progress EA-10753 - PHP in terminal or cronjob is not working

    Hello! In a brand new server running Ubuntu I have this problem. When we try to run "php -v" from the user's Terminal in cPanel or user's cronjob we got a ton of error lines. The same from root is working ok. MIB search path...
  9. N

    csv cronjob to import in mysql database table

    Hello, I am having a CSV daily sent via ftp to my public_html folder on a website. I am trying to make a cron job to import it into database called "grijanjetuzla_stanjeracuna" in table "saldo" , and delete records in table "saldo" it next day so I can import it again with fresh data. This is...
  10. H

    Cronjob Not running on a specific user

    Hi , we have a cpanel user , that cronjobs not running on this account . we check running cronjobs on other account with same command and it runs successfully . Selinux is disabled : [root@fra ~]# sestatus SELinux status: disabled [root@fra ~]# [root@fra ~]# grep...
  11. T

    cronjob on php giving a 500 internal error

    When a cronjob is execute on a php script, it give an error Status: 500 Internal Server Error Content-type: text/html; charset=UTF-8 I joined the chatroom of that script and they tried everything to figure out why it doing this but we could not come up an answer. This cronjob error was...
  12. Nahoo

    Delete old emails or just old junk emails for one or all users

    I have created a nice script that deletes old emails for either a single user or all users. It can also handle junk/spam emails only - which will also help to keep the account space usage down. Usage examples: A single user, with emails a year or older: sh ./delete_old_emails.sh someuser 12...
  13. DDSameera

    composer install is not working in cronjob environment

    current_domain_path="/home/acc40/public_html" cpanel_user="acc40" echo $current_domain_path echo $cpanel_user cd $current_domain_path cd $current_domain_path; /opt/cpanel/composer/bin/composer install */2 * * * * bash /customscript/installation_v2/run.sh Test - Passed Go to terminal and...
  14. M

    Anacron job 'cron.daily' on <serverdomain>

    I have started getting these bi-daily updates on the server admin email stating: /etc/cron.daily/logrotate: error: libcare:3 bad rotation count '5 # keep 5 last archives' error: found error in /var/log/libcare/*.log , skipping where the folder /var/log/libcare/ is empty. I have not knowing...
  15. WebHostPro

    Setting a cronjob to reset PHP-FPM

    Our shared servers seem to gradually build up CPU use until we reset PHP-FPM. It then comes down right away. I was thinking of running a weekly or maybe even a daily cronjob to reset it. Do you think this could have any negative precautions? And what would be the best cron job to do this say...
  16. H

    PHP require() not working with cronjob executed scripts

    When I run a PHP script using a cronjob, a require() function halts the script without returning an error, but when I run the script directly, it executes without issue. I'm using an absolute path to my include file: require('/home/userdir/public_html/path/to/file'); I've compared...
  17. Logesh K

    Cron Job to auto clean Magento Session files to save inodes

    Is it good to add the below code in /var/spool/cron/root to cleanup the Magento Session files regularly? 0 0 * * * find /tmp -name 'sess*' -mtime +1 -exec rm -v {} \; Kindly advice. Thanks
  18. B

    Execute a php file in /home/file.php to exclude from php limit

    i have a small php file that need to run about 30 minutes but my php max_execution_time setting is default, only 30 seconds so can i put the php file ie in /home/file.php to exclude from php limit & execute it via Cron job? ie cron job commands : php /home/file.php
  19. R

    Questions about a specific cron job

    Our server runs CentOS 6.10 KVM, cPanel/WHM version: v76.0.20. The subject cron runs every day. We have a couple of question about this. <root@tigger> /usr/bin/yum -y -R 120 -d 0 -e 0 update 1. We have the upcp script running every day which appears to run yum. Is this so and if so is...
  20. N

    SOLVED Cron Job execute curl only if file has been modified

    Hi I need to execute a command in cron job, but only if a file has been touched. Currently, my cron command is: curl "..." where "..." is my target link. I am new to this but I did manage to find something online. Hoping that someone with experience can confirm that the command below is...