Posts: 81
Threads: 25
Joined: Oct 2014
Reputation:
1
Thanks: 13
Given 10 thank(s) in 8 post(s)
All time problems with Cron
06-12-2018, 02:46 PM
The first problem i have : I can´t add cron jobs from CP, impossible, i fix when change owner od folder in var/spool and use apache/apache as owner and change chmods, ok right , i can add url from cron jobs from CP
I put script and path all it´s right, but never running , never get running, yes show add cron jobs in CP but the action never happend
After this we go from SSH and edit crontabs and add some lines but try works
Quote:* * * * * /usr/bin/php -q /home/hostdata/zadmin/public_html/domain_com/chanels/cron.php
* * * * * /usr/bin/php /home/hostdata/zadmin/public_html/domain_com/chanels/cron.php
But never running .............
I don´t understand why don´t works
Result tail:
Quote:tail -f /var/log/syslog | grep cron
tail: cannot open `/var/log/syslog' for reading: No such file or directory
tail: no files remaining
In var/logs , show cron logs and right
At the moment never running cron and yes if i running from command line in manuel mode, yes works, running this from SSH and works, the problem it´s daemond for cron not works
Quote:* * * * * /usr/bin/php /home/hostdata/zadmin/public_html/domain_com/chanels/cron.php
I try all until send question here, but i can´t fix this, if some people can help here perfect, thank´s in advanced
Also i test this :
Posts: 3 ,659
Threads: 241
Joined: May 2014
Reputation:
85
Sex: Male
Thanks: 406
Given 599 thank(s) in 464 post(s)
RE: All time problems with Cron
06-17-2018, 11:05 AM
Is your daemon still running every 5 minutes?
Are the cron jobs being added to: /var/spool/cron/crontabs/www-data ?
-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
Posts: 81
Threads: 25
Joined: Oct 2014
Reputation:
1
Thanks: 13
Given 10 thank(s) in 8 post(s)
RE: All time problems with Cron
06-17-2018, 12:30 PM
(This post was last modified: 06-17-2018, 12:50 PM by franmm25.)
When running this the result it´s this : I use Centos 6
Quote:[root@cp ~]# crontab -u apache -l
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
HOME=/
#################################################################################
# CRONTAB FOR SENTORA CRON MANAGER MODULE
# Module Developed by Bobby Allen, 17/12/2009
# File automatically generated by Sentora 1.0.3
#################################################################################
# NEVER MANUALLY REMOVE OR EDIT ANY OF THE CRON ENTRIES FROM THIS FILE,
# -> USE SENTORA INSTEAD! (Menu -> Advanced -> Cron Manager)
#################################################################################
# CRON ID: 3
* * * * * php -d suhosin.executor.func.blacklist="passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec" -d open_basedir="/var/sentora/hostdata/zadmin/:/var/sentora/temp/" /var/sentora/hostdata/zadmin/public_html/mywebsite_com/chanels/cron.php
# END CRON ID: 3
[root@cp ~]#
Quote:[root@cp ~]# crontab -u www-data -l
crontab: user `www-data' unknown
[root@cp ~]#
I see when add from CP show in file apache inside var/spool/
But nor tunning , also i try add manual inside crontab from ssh nano crontab
And also happend the same
Posts: 3 ,659
Threads: 241
Joined: May 2014
Reputation:
85
Sex: Male
Thanks: 406
Given 599 thank(s) in 464 post(s)
RE: All time problems with Cron
06-21-2018, 06:39 AM
Me.B can you confirm the owner/permissions for crontab in CentOS for me?
-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
Posts: 81
Threads: 25
Joined: Oct 2014
Reputation:
1
Thanks: 13
Given 10 thank(s) in 8 post(s)
RE: All time problems with Cron
06-23-2018, 12:40 AM
/var/spool
cron CHMO 770 owner apache apache
inside file calle apache chmod 600 and owner apache apache
i can add from CP but never works, i add path to tile for execute but never works, also i add cron for crontabs -e and crontabs and no works, but service working and sentora daemon execute i think well
Inside apache file inside cron folder :
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
HOME=/
#################################################################################
# CRONTAB FOR SENTORA CRON MANAGER MODULE
# Module Developed by Bobby Allen, 17/12/2009
# File automatically generated by Sentora 1.0.3
#################################################################################
# NEVER MANUALLY REMOVE OR EDIT ANY OF THE CRON ENTRIES FROM THIS FILE,
# -> USE SENTORA INSTEAD! (Menu -> Advanced -> Cron Manager)
#################################################################################
# CRON ID: 3
* * * * * php -d suhosin.executor.func.blacklist="passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec" -d open_basedir="/var/sentora/hostdata/zadmin/:/var/sentora/temp/" /var/sentora/hostdata/zadmin/public_html/website_com/famzchanels/cron.php
# END CRON ID: 3
# CRON ID: 5
0,5,10,15,20,25,30,35,40,45,50,55 * * * * php -d suhosin.executor.func.blacklist="passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec" -d open_basedir="/var/sentora/hostdata/zadmin/:/var/sentora/temp/" /var/sentora/hostdata/zadmin/public_html/website_com/famzchanels/cron2.php
# END CRON ID: 5
Posts: 3 ,659
Threads: 241
Joined: May 2014
Reputation:
85
Sex: Male
Thanks: 406
Given 599 thank(s) in 464 post(s)
RE: All time problems with Cron
06-24-2018, 02:58 AM
Me.B, Any suggestions for CentOS?
-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
Posts: 4 ,002
Threads: 193
Joined: Jul 2014
Reputation:
83
Sex: Undisclosed
Thanks: 72
Given 435 thank(s) in 395 post(s)
RE: All time problems with Cron
07-03-2018, 07:08 AM
owner is apache & 770 is ok.
|