简体   繁体   English

Cron Job无法在具有Curl的(Ubuntu Linux 10.04.1)服务器上运行吗?

[英]Cron Job not running on (Ubuntu Linux 10.04.1) server with Curl?

I'm trying to run a cleanup.php script on a Magento site hosted on Ubuntu Linux 10.04.1 the script command is: 我试图在Ubuntu Linux 10.04.1上托管的Magento网站上运行cleanup.php脚本,脚本命令为:

curl -s -o /dev/null http://www.domain.com/cleanup.php?clean=log

and the script: 和脚本:

http://www.magentocommerce.com/wiki/groups/227/maintenance_script.

I have this script and command working on another server (1and1 shared) 我有此脚本和命令在另一台服务器上工作(1and1共享)

I have had a look around the forums Cron job in Ubuntu and tried different command versions but can't get it to run ? 在Ubuntu的Cron论坛上浏览了一下,尝试了不同的命令版本,但无法运行? Curl is enabled on the server. 在服务器上启用了卷曲。

Can anybody help ? 有人可以帮忙吗? Many thanks 非常感谢 在此处输入图片说明

Am I the only one who spotted that the URL the cronjob is trying to call has "http://" repeated twice at the start? 我是唯一发现cronjob尝试调用的URL在开始时重复两次“ http://”的人吗?

Not the critical error, but still... 不是严重错误,但仍然...

Apparently you don't have curl installed. 显然您没有安装curl。 :) :)

You may try to use whereis curl to let system check it for you. 您可以尝试使用whereis curl让系统为您检查它。

Make sure you have installed this package (or 32b alternative). 确保已安装此软件包 (或替代的32b)。

Or you can just use wget what is common linux CLI tool for such a tasks. 或者,您可以仅使用wget来执行此类任务,而该工具是通用的Linux CLI工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM