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
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
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
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
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 5 ,540 03-18-2020, 07:38 PM
Last Post: AanaNahum
subdomains live but not working..!! natimctat 2 7 ,563 01-27-2020, 06:47 PM
Last Post: Shabbirhasan
working on single domain bahabi 1 4 ,397 08-27-2019, 12:06 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)