cron选项卡不工作php [英] cron tab not working php
本文介绍了cron选项卡不工作php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我通过输入此命令添加了cronjob - crontab -e。我在该文件中添加了以下任务 -
I added a cronjob by entering this command - crontab -e. I added the following tasks in that file-
*/5 * * * * /var/www/web/vendors/shells/aggregated_deals.php
*/5 * * * * /var/www/web/vendors/shells/deals.php
这些是php脚本。之后,我重新启动了apache服务器,但这些脚本没有执行。而syslog日志文件为空。
请帮我运行此cron。
These are php scripts. after that i restarted the apache server,but these scripts are not executing. And syslog log file is empty. please help me to run this cron.
推荐答案
我不认为这将运行自己 - 你需要使用PHP解释器运行脚本,如下所示:
I don't think that will run by itself - you need to run the scripts using the PHP interpreter, like this:
/usr/bin/php /var/www/web/vendors/shells/aggregated_deals.php
请注意,您的安装可能有 php
其他地方 - 使用命令
其中php
在命令行找出位置。
Note that your installation may have php
elsewhere - use the command which php
on the command line to find out the location.
这篇关于cron选项卡不工作php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文