Hello! I'm setting up osTicket for the first time, following this guide to email polling: http://osticket.com/wiki/POP3/IMAP_Setting_GuideWhen I enter this command via SSH client, it successfully polls emails into osTicket./usr/bin/php /path/to/api/cron.phpHowever, my crontab has this entry:*/15 * * * * /usr/bin/php /path/to/api/cron.phpIn this case, seemingly the same command doesn't poll emails, and gives this error:Parse error: syntax error, unexpected ':' in path/to/bootstrap.php on line 346Just to be clear, I am using the correct path, not "path/to". I'm afraid I'm new to both SSH and crontab, so I don't understand why the command works in one case and not the other. I'd appreciate any suggestions?

Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.Version of osTicket?Version of PHP?

Sorry about that. The version of osTicket is: v1.10.1 (9ae093d)But I think you have inadvertantly solved my problem. My site runs PHP 5.6. However, according to the cron job panel of my host, /usr/bin/php is the path to PHP 5.2.I tried the same thing again, guessing the correct path to 5.6*/15 * * * * /usr/bin/php-5.6 /path/to/api/cron.phpAnd it seems to work. Thank you!

That was my next question. :)  I'm glad that you got this sorted.  I will mark this thread as resolved and close it.  Please feel free to start a new thread if you have another question, comment, concern, query, wonder. 

Write a Reply...