cron

  1. joaosavioli

    Custom php.ini cron jobs don´t work

    Hi, I´m trying to use a custom php.ini for cron jobs, but php ignore my php.ini and use global settings. [email protected] [~]# /opt/cpanel/ea-php56/root/usr/bin/php -c php.ini -i | grep memory_limit memory_limit => 256M => 256M [email protected] [~]# cat php.ini ; cPanel-generated php ini...
  2. Jeff P.

    Transfer Tool - Acct Cron not running after move.

    I used the transfer tool to move and now an account cron jobs are not running. However, they are all in the control panel.
  3. G

    SOLVED How to create a cron job? Beginner

    I want to create a cron job that can do a Session Garbage Collection, and it is recommended by php.net, here is the page from php.net (EXAMPLE #1) PHP: session_gc - Manual. I don't have a good knowledge about Linux's commands. Please help me, I need it, thanks. EDIT: In Cron Jobs -...
  4. B

    Start and stop cron job manually on shared host

    I'm on a shared hosting plan at Bluehost and set up cron jobs through the cpanel cron job tab. I'm able to specify the periodicity and issue a command to trigger the php script. Is there a way from PHP to issue a cron job and set the periodicity and also from PHP to remove the cron job? Could...
  5. M

    cron job path is not working

    hi i have set cronjob path for my website but its not working i dont know what is issue actually i fresh install cpanel and just compile fresh apache4 nothing else and import my website from other server to this one put my this path in cron job and not working here is my current path of cron...
  6. B

    cron email every morning

    Every morning I get a cron email titled "Cron <[email protected]> yum clean all; yum update -y" it has the contents of Loaded plugins: fastestmirror, priorities, security Cleaning repos: kernelcare stable-arch stable-generic stable-noarch system-base : system-extras...
  7. K

    Cron job not working for 1 user

    Hello, I have a cPanel user/account whose cron job is not working as expected. I tried the script and set up a cron job on another user/account and it worked fine with output sent to email. Please advise how to troubleshoot this. Thank you!
  8. H

    Cron is creating empty files, how to stop this?

    Hello to everyone, I'm using Cron from cPanel to complete some automatic tasks to my website , i have setup the cron command like this : * * * * * wget -q https://www.mydomain.com/cron/WonProductNotification >/dev/null 2>&1 and each time it's completing the task it's creating files like...
  9. J

    Get upcp cron update emails only on erro

    I'm sick and tired of getting the upcp update cron emails every day. A major frustration is is when I do keyword searches in my Outlook, I always get these emails as matching as there is SO much text in them. (Yes, one solution would be to create an Outlook rule to permanently delete these...
  10. A

    Can't get Cron job to run

    I'm attempting to get this simple Cron command to run from the Cron jobs panel. ** * * * * find /home/CPANELUSERNAME/public_html -mtime -1 \! -type d -ls The purpose of the command is to alert me when a file changes. CPANELUSERNAME has been changed to my user name and I have set an email...
  11. leonep

    Cron Job You cannot run this code as root

    Hi, I have updated to whm/cpanel 62. All is ok but after cron job i have reiceved 1 error. [email protected] [~]# /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify Cpanel::Exception::RootProhibited/(XID uzxbtb) Non è possibile eseguire questo codice come root. You cannot run this...
  12. S

    All cron jobs removed

    So I just migrated all the cpanel accounts from one server to another and there was one account with a cronjob that was pointing to somewhere that didn't exist, so I went into that user's control panel and deleted it. I went into list the root's cron jobs and no nothing exists. I know about...
  13. U

    User Cron doesn't seem to be working

    For months now I have been trying to figure out why the user cron is not working, I am running CENTOS 7.3 x86_64 standard –WHM 60.0 (build 35) with PHP 5.5.38. The user cron that was working fine up until Oct 2016 is: */2 * * * * php -q /home/user/public_html/hosting/cron/cronjob.php In the...
  14. M

    cron job not working

    hi i have set some cron jobs but its not working i i have set path like in cpanel /home/user/public_html/domain.com/fetch/mov.php > /dev/null 2>&1 but its not adding anything in database i set some php path on there to get something and add them in database but still its not working commands not...
  15. S

    SOLVED Run php file on cron job passing vars

    Hi actually i had this cron job php -f -q /home/lazybkp/public_html/classes/scClass.php?notifyAdmins=true But it didn't work, it's because at the end of the script i'm passing this vars ?notifyAdmins=true How can i make it work? Thanks in advance
  16. nitaish

    Log location for cron jobs set from cPanel

    One of my customers has set the timezone as Indian Standard Time in his server which is based in US datacenter. He has set a cron job to execute every wednesday at 16:30. The cron job executes a script which sends out emails. He claims that the script is sending out the script as per EST...
  17. A

    SOLVED Cron not executing properly

    /usr/local/bin/php -q /home/example/public_html/create_test.php This php script will just create a file. <?php $myfile = fopen("newfile.txt", "w") or die("Unable to open file!"); $txt = "John Doe\n"; fwrite($myfile, $txt); $txt = "Jane Doe\n"; fwrite($myfile, $txt); fclose($myfile); ?>
  18. T

    Cron jobs do not work

    After recent updates my cron jobs do not work, this is my conf: CENTOS 6.8 x86_64 standard – creativalab WHM 58.0 (build 32) Which is the correct line command to execute a php page?
  19. A

    Cron jobs from ftp to localhost

    Hey all, Thank you for reading this. Hopefully you can help. I need to create a cron job on cpanel to a remote ftp server to pull a csv off every hour and place it in the local public_html directory. Is this possible? If so how would I go about doing this please?
  20. P

    Cron jobs problem - headers

    After recent WHM update (WHM 58.0 (build 31) - CENTOS 7.2 x86_64) my cron jobs for users accounts started to output headers like this: Set-Cookie: PHPSESSID=[some_data]; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0...