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 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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:


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

Forum Jump:


Users browsing this thread: 2 Guest(s)