Php Cron任务在magento 1.9.2上不起作用

Php Cron任务在magento 1.9.2上不起作用,php,magento,cron,Php,Magento,Cron,我一直在尝试在magento站点(子域)上运行cron任务 !测试-e/home/XXXX/public_html/newmagento/maintenance.flag&&cd/home/XXXX/public_html/newmagento/shell&&usr/bin/php scheduler.php——操作监视程序 Status: 500 Internal Server Error X-Powered-By: PHP/5.6.14 Content-type: text/html; ch

我一直在尝试在magento站点(子域)上运行cron任务

!测试-e/home/XXXX/public_html/newmagento/maintenance.flag&&cd/home/XXXX/public_html/newmagento/shell&&usr/bin/php scheduler.php——操作监视程序

Status: 500 Internal Server Error
X-Powered-By: PHP/5.6.14
Content-type: text/html; charset=UTF-8

尝试输出到日志文件以捕获错误,如

0,30****/bin/sh/home/XXXX/public\u html/newmagento/cron.sh>> 指向/magner/var/filename.log的路径

最好在magento var日志文件夹中使用日志文件

当您选择运行cron.php文件时,请确保php二进制文件并将其与路径一起使用。要查找路径,请使用以下命令

>which php

您是否通过安装“aoe调度程序扩展”进行了检查?添加此“aoe调度程序扩展”nsdlfefinedieicbe我已使用aoe调度程序扩展对其进行了测试,并更新了结果。我也将尝试此操作。服务器上的php路径为/usr/local/bin/php,我想把它放在命令中,你建议这样做*/15****/usr/local/bin/php-f/home/XXXX/public\u html/newmagento/cron.phpAlso你可以尝试在提示符下手动调用cron文件,比如>/usr/local/bin/php-f/home/XXXX/public\u html/newmagento/cron.php或>sh/home/XXXX/public\u html/newmagento/cron.shi尝试从命令提示符:sh/home/xxx/public_html/newmagento/cron.sh和/usr/local/bin/php-f/home/xxxx/public_html/newmagento/cron.php,但在终端、电子邮件中没有收到任何消息,cron也没有工作 /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable /home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: Resource temporarily unavailable
/bin/bash: fork: retry: Resource temporarily unavailable
/bin/bash: fork: retry: Resource temporarily unavailable
/bin/bash: fork: retry: Resource temporarily unavailable
/bin/bash: fork: retry: Resource temporarily unavailable
/home/XXXX/public_html/newmagento/scheduler_cron.sh: fork: retry: Resource temporarily unavailable
Status: 500 Internal Server Error
X-Powered-By: PHP/5.6.14
Content-type: text/html; charset=UTF-8 
Status: 500 Internal Server Error
X-Powered-By: PHP/5.6.14
Content-type: text/html; charset=UTF-8
>which php