Cron Tasks not working
#1
Cron Tasks not working
Hi,
I checked everything, and still can't know what is the problem.
When I add a task it's not working at all and I'm sure that the path is correct.
Reply
#2
RE: Cron Tasks not working
So if you the path is correct it should run.

Check again or post the settings you tried. We can't do a blind guess, despite loving the mentalist ;-).

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#3
RE: Cron Tasks not working
When I enter this code "crontab -u apache -l" in ssh it gives me :


Code:
[root@cpanel ~]# 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: 5 0 0 * * * 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/******/siteadmin/********/videos/automembed.php # END CRON ID: 5
Reply
#4
RE: Cron Tasks not working
cron setup looks ok.

Try to run in command line:

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/******/siteadmin/********/videos/automembed.php

See if it works
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#5
RE: Cron Tasks not working
I got it.
after test that code you give me , it tell me this "PHP Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in" so it has to be no open_basedir in the code and it worked.

thank you for your help
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Add on Domains not working but Main domain works luckyviet 2 7 ,853 03-18-2020, 07:38 PM
Last Post: AanaNahum
working on single domain bahabi 1 5 ,736 08-27-2019, 12:06 AM
Last Post: TGates
DNS Stopped Working hthiers 3 9 ,493 05-10-2019, 06:00 AM
Last Post: hthiers

Forum Jump:


Users browsing this thread: 1 Guest(s)