I forgot to mention...so I have confirmed that cron.php runs and completes successfully if I just copy and paste the php code that is auto created by Sentora...i.e.
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/mysite_com/cron.php
So that works if I manually paste it into the terminal. So why wouldn't this run succesfully through Sentora and the Cron manager.
Looking at syslog log (tail /var/log/syslog) file I can see this (I just changed a few things to conceal the site's identity):
Apr 12 18:02:01 panel CRON[14857]: (www-data) CMD (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/sitename_com/cron.php)
Apr 12 18:02:01 panel postfix/pickup[14406]: B3A53142D2C: uid=33 from=<www-data>
Apr 12 18:02:01 panel postfix/cleanup[14500]: B3A53142D2C: message-id=<20150412090201.B3A53142D2C@panel.sitename.com>
Apr 12 18:02:01 panel postfix/qmgr[1062]: B3A53142D2C: from=<www-data@sitename.com>, size=1793, nrcpt=1 (queue active)
Apr 12 18:02:01 panel postfix/qmgr[1062]: warning: connect to transport private/retry: Connection refused
Apr 12 18:02:01 panel postfix/qmgr[1062]: B3A53142D2C: to=<www-data@panel.sitename.com>, orig_to=<www-data>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
So as you can see the syslog file, it's definitely running that php line which should run the cron.php file. However, it's not being run as there is no record of cron being run on the Drupal site and it shows that the cron job has not been run.
Any ideas why it's not working automatically with the cron job?
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/mysite_com/cron.php
So that works if I manually paste it into the terminal. So why wouldn't this run succesfully through Sentora and the Cron manager.
Looking at syslog log (tail /var/log/syslog) file I can see this (I just changed a few things to conceal the site's identity):
Apr 12 18:02:01 panel CRON[14857]: (www-data) CMD (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/sitename_com/cron.php)
Apr 12 18:02:01 panel postfix/pickup[14406]: B3A53142D2C: uid=33 from=<www-data>
Apr 12 18:02:01 panel postfix/cleanup[14500]: B3A53142D2C: message-id=<20150412090201.B3A53142D2C@panel.sitename.com>
Apr 12 18:02:01 panel postfix/qmgr[1062]: B3A53142D2C: from=<www-data@sitename.com>, size=1793, nrcpt=1 (queue active)
Apr 12 18:02:01 panel postfix/qmgr[1062]: warning: connect to transport private/retry: Connection refused
Apr 12 18:02:01 panel postfix/qmgr[1062]: B3A53142D2C: to=<www-data@panel.sitename.com>, orig_to=<www-data>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
So as you can see the syslog file, it's definitely running that php line which should run the cron.php file. However, it's not being run as there is no record of cron being run on the Drupal site and it shows that the cron job has not been run.
Any ideas why it's not working automatically with the cron job?