无法为 Laravel4 设置 Cron

Unable to set Cron for Laravel4

过去 3 天我一直在努力为我的网站设置 cron。在我的 cpanel 中,我提到了一个 cron,它每 5 分钟 运行,命令是

wget http://www.example.com/artisan cron:run

在我的artisan中我添加了

Artisan::add(new CronRunCommand);

而CronRunCommand.php是

<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class CronRunCommand extends Command {
    protected $name = 'cron:run';
    protected $description = 'Run the scheduler';
    protected $timestamp;
    protected $messages = array();
    protected $runAt = '03:00';
    public function __construct()
    {
        parent::__construct();
        $this->timestamp = time();
    }
    public function fire()
    {
        $this->everyFiveMinutes(function()
        {
            // In the function, you can use anything that you can use everywhere else in Laravel.
            $affectedRows = User::where('logged_in', true)->update(array('logged_in' => false)); // Not really useful, but possible
            Artisan::call('auth:clear-reminders');
            $this->messages[] = $affectedRows . ' users logged out';
        });
        $this->dailyAt('09:00', function()
        {
            Mail::send('hello', array(), function($message)
            {
                $message->to('admin@mydomain.com', 'Cron Job')->subject('I am still running!');
            });
        });
        $this->finish();
    }
    protected function finish()
    {
        // Write execution time and messages to the log
        $executionTime = round(((microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']) * 1000), 3);
        Log::info('Cron: execution time: ' . $executionTime . ' | ' . implode(', ', $this->messages));
    }
    protected function yearly(callable $callback)
    {
        if(date('m', $this->timestamp) === '01' && date('d', $this->timestamp) === '01' && date('H:i', $this->timestamp) === $this->runAt) call_user_func($callback);
    }
}

在我的电子邮件中,我收到了这条消息: 404 未找到 2015-09-06 04:38:02 错误 404:未找到。

--2015-09-06 04:38:02-- ftp://cron/run => “运行” 解析 cron... 失败:名称或服务未知。 wget:无法解析主机地址“cron”

这非常有效,我已经开始定期发送电子邮件 wget http://www.example.com/protected/app/controllers/TestController.php