This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Cron Jobs not executing
#1
Cron Jobs not executing
Hi,

i've created a simple test.php in my domain root directory. This file just appends a string in a .txt file. Easy. Of course i tested it and it works.
The problem is...the cron job never executes. 

Script: mydomain.tk/test.php
Run every 1 minute.

It's added normally, but it's not really executed. Am I missing something?
Reply
Thanks given by:
#2
RE: Cron Jobs not executing
(01-26-2017, 01:08 AM)Saveriott12 Wrote: Hi,

i've created a simple test.php in my domain root directory. This file just appends a string in a .txt file. Easy. Of course i tested it and it works.
The problem is...the cron job never executes. 

Script: mydomain.tk/test.php
Run every 1 minute.

It's added normally, but it's not really executed. Am I missing something?

This may 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
Thanks given by:
#3
RE: Cron Jobs not executing
I've added the following cron script:

mydomain.tk/new_curl.php

new_curl.php:


PHP Code:
<?php
include('curl.php');
?>


curl.php:


PHP Code:
<?php
$file 
'people.txt';
$person "John Smith\n";
file_put_contents($file$personFILE_APPEND LOCK_EX);
?>


not executing..
Reply
Thanks given by:
#4
RE: Cron Jobs not executing
(01-26-2017, 09:41 AM)Saveriott12 Wrote: I've added the following cron script:

mydomain.tk/new_curl.php

new_curl.php:


PHP Code:
<?php
include('curl.php');
?>


curl.php:


PHP Code:
<?php
$file 
'people.txt';
$person "John Smith\n";
file_put_contents($file$personFILE_APPEND LOCK_EX);
?>


not executing..

Huh
Did you read that other post? The above means nothing if you did not read that post and make the proper changes if needed. Is your cron service even running?
-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
Thanks given by:
#5
RE: Cron Jobs not executing
"make sure /var/spool/cron owned by apache:apache and permissions 770" - Done.
"make sure /var/spool/cron/apache owned by apache:apache and permissions 660" - i get "no such file or directory".
This is what i have in /var/spool/cron/:
atjobs, atspool, crontabs .

And "cron" folder is owned by "root" , not apache:apache.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Uninstalled but have cron daemon issues now HELP suprastan 1 5 ,308 10-07-2018, 03:26 AM
Last Post: TGates
Cron Job Issue: Error: System Cron file could not be created. nscloud 6 15 ,949 07-04-2018, 02:32 AM
Last Post: TGates
All time problems with Cron franmm25 6 13 ,464 07-03-2018, 07:08 AM
Last Post: Me.B

Forum Jump:


Users browsing this thread: 5 Guest(s)