Laravel Cron Job not running commands
<p>I am working with Laravel 5.3 , on an Digital Ocean LEMP Stack droplet (ubuntu server).</p>

<p>I am trying to create a cron job that will my command every 15 minutes, It looks like the cronjob on the server is running , but the command is not getting executed.</p>

<p>Now if manually do php artisan import:data from the server terminal, it runs perfectly.</p>

<p>This is in my crontab -e:</p>

<pre><code>* * * * * php /var/www/itom/artisan schedule:run&gt; /dev/null 2&gt;&amp;1
</code></pre>

<p>On the laravel docs it shows this:</p>

<pre><code>* * * * * php /path/to/artisan schedule:run &gt;&gt; /dev/null 2&gt;&amp;1
</code></pre>

<p>So im sure this is correct.</p>

<p>Inside of app/console/kernel.php:</p>

<pre><code>protected function commands()
{
    require base_path('routes/console.php');
}

protected $commands = [
    \App\Console\Commands\ImportData::class,
];

protected function schedule(Schedule $schedule)
{
    $schedule-&gt;command('import:data')-&gt;cron('*15/ * * * * *');
}
</code></pre>

<p>Inside my app/console/commands/ImportData.php:</p>

<pre><code>use App\Import;

class ImportData extends Command
{

protected $signature = 'import:data';

protected $description = 'Imports page100.txt probe data';

public function __construct()
{
    parent::__construct();
}

public function handle()
{
    $import = new Import;
    $import-&gt;start();
}
</code></pre>

<p>I don't understand why this isn't working with cronjob, but it's working when I manually run php artisan <code>import:data</code></p>