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.

All time problems with Cron
#1
All time problems with Cron
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 :
Reply
Thanks given by:
#2
RE: All time problems with Cron
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
Reply
Thanks given by:
#3
RE: All time problems with Cron
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
Reply
Thanks given by:
#4
RE: All time problems with Cron
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
Reply
Thanks given by:
#5
RE: All time problems with Cron
/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
Reply
Thanks given by:
#6
RE: All time problems with Cron
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
Reply
Thanks given by:
#7
RE: All time problems with Cron
owner is apache & 770 is ok.
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Problems After PHP7 upgrade bloods 3 6 ,668 12-03-2019, 10:36 AM
Last Post: Jettaman
Time to give up on Suhosin? aaronlroberts 2 6 ,021 05-11-2019, 08:31 AM
Last Post: aaronlroberts
I changed date and time from server and sentora does not work gabriel15959 1 4 ,556 03-20-2019, 11:52 PM
Last Post: fearworks

Forum Jump:


Users browsing this thread: 1 Guest(s)