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
[Not Solved] 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
[Not Solved] 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 - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by:
#3
[Not Solved] 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
[Not Solved] RE: All time problems with Cron
Me.B can you confirm the owner/permissions for crontab in CentOS for me?
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by:
#5
[Not Solved] 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
[Not Solved] RE: All time problems with Cron
Me.B, Any suggestions for CentOS?
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by:
#7
[Not Solved] 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
Coldfusion Freelance

10$ free to start your VPS

Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
Cron Job Issue: Error: System Cron file could not be created. nscloud 6 1,238 07-04-2018, 02:32 AM
Last Post: TGates
Installation problems OSTICKET pinchos 1 763 04-19-2018, 11:53 PM
Last Post: pinchos
proftpd problems timce2000 2 913 03-01-2018, 09:14 AM
Last Post: timce2000

Forum Jump:


Users browsing this thread: 1 Guest(s)