lundi 26 octobre 2015

Cron Jobs Parse error

I`m working on laravel 5.1 application and i need to use Laravel Task Schedule it's working well in my local server.

But when i use cron job on my web hosting server i face this error

Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /home/titglobal/public_html/ElAQSA/artisan on line 31

This is my Cron Command in my server

/usr/local/bin/php /home/titglobal/public_html/ElAQSA/artisan schedule:run > /home/titglobal/cron.log 2>&1

Note: Also i tried to use * * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1

as laravel Doc mentioned the same error in html page

my app use PHP 5.6 but the default php version in web hodting server php v 5.3



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire