【发布时间】:2013-02-28 20:05:52
【问题描述】:
我只需要在我的 cPanel 中使用 cron 作业运行以下 url。
当我尝试执行链接时
http://www.insidewealth.com.au/index.php?option=com_acymailing&ctrl=cron
链接正在浏览器中运行,但是当我尝试添加与 cron 作业中相同的 URL 时,我收到以下错误
bash/sh/ file not found
当我将 cron 作业编辑为
/usr/bin/php /home/staging/public_html/index.php?option=com_acymailing&ctrl=cron
但我收到 404 错误。
我的 cPanel 用户名是 staging
谁能告诉我cPanel中cron作业的语法是什么。
每分钟运行一次 Cron 作业并通过电子邮件报告显示此错误。
【问题讨论】:
-
你能检查cPanel文件管理器并确认index.php的路径是/home/staging/public_html/吗?
-
@sinisterfrog - 是的,文件在正确的位置。
-
也可以通过输入
which php来检查php的路由。