cron task issue
#1
cron task issue
I have installed Sentora 1.0.3 on Ubuntu 14.04.5 LTS, also installed xbilling on sentora, everthing is working fine except the cron tasks.I have configured a cron task in cron manager to run 'accounts_jobs.php' every 1 mitute, but nothing is executing, any help, will be very appréciated.
Reply
#2
RE: cron task issue
Should help: http://forums.sentora.org/showthread.php?tid=491
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#3
RE: cron task issue
(06-03-2017, 12:25 PM)TGates Wrote: Should help: http://forums.sentora.org/showthread.php?tid=491
Thank you for your reply,

with the suggested steps :

  1. make sure /var/spool/cron owned by apache:apache and permissions 770
  2. make sure /var/spool/cron/apache owned by apache:apache and permissions 660
  3. the correct cron script path is: your_domain_com/CRONFILE.php or your_domain_com/SUBFOLDER/SUBFOLDER/CRONFILE.php
    (Use starting slash CentOS/Ubuntu. No starting slash if using Windows!)
I can do step 1., step 3. is set correctly, but in step 2., when I try to access /var/spool/cron/apache,  i get "no such file or directory", I am using Ubuntu 14.04.5 LTS

here is what I get when i issue the ls command (step 1. not set yet)
root@panel:/var/spool/cron# ls -al
total 20
drwxr-xr-x 5 root     root     4096 Mar 13 08:43 .
drwxr-xr-x 7 root     root     4096 Apr  1 06:58 ..
drwxrwx--T 2 daemon   daemon   4096 Jun  1 00:20 atjobs
drwxrwx--T 2 daemon   daemon   4096 Jun  1 00:20 atspool
drwxr--r-- 2 www-data www-data 4096 Apr  1 12:46 crontabs

the content of the cron task that I am trying to set  "accounts_jobs.php" is as follow :

<?php
 /**
 * Front-end cron script for ZPanel xBilling Module
 * Version : 1.1.0
 * @author Aderemi Adewale (modpluz @ ZPanel Forums)
 * Email : goremmy@gmail.com
 * @desc Performs checks for Domain Expiration Reminder, Invoice Reminder, Domain Deletion 
*/
    $dir = '../';
    require_once('../config.php');
    require_once('../functions/xbilling.php');
    
    //Invoice Reminder
    InvoiceReminder();

    //Disable Expired Domains
    DisableExpiredDomains();
    
    //Renewal Reminder
    RenewalReminders();    
    
    //Delete Expired Domains after X Days - this will probably come in the next version
    DeleteExpiredDomains();
?>


Attached Files Thumbnail(s)
   
Reply
#4
RE: cron task issue
On Ubuntu I have:

Code:
/var/spool/cron/crontabs

With two files in it:

Quote:root             rw------    root               (0600 permissions)
www-data    rw------    www-data      (0600 permissions)     <-- contains Sentora cron jobs

If this works, I will update the tutorial.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#5
RE: cron task issue
It works !!
Thank you very much for your time and support.


Attached Files Thumbnail(s)
       
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Old issue on Daily Backup iraqiboy90 24 132 ,825 12-26-2020, 12:48 PM
Last Post: conglynina
Security issue urgent johnnyp 7 18 ,665 02-27-2020, 06:19 PM
Last Post: johnnyp
sub-domain issue kevwebbie 15 41 ,678 12-21-2018, 05:51 PM
Last Post: kevwebbie

Forum Jump:


Users browsing this thread: 1 Guest(s)