Problems setting up cron successfully

  • Stuart
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 11 months ago - 3 years 11 months ago #142611 by Stuart
Hi,
I have set up the cron job in cpanel for;
/home/ccpharma/public_html/components/com_osservicesbooking/cron.php
with '755' permission and get the error message

/home/ccpharma/public_html/components/com_osservicesbooking/cron.php: line 1: ?php
: No such file or directory
/home/ccpharma/public_html/components/com_osservicesbooking/cron.php: line 2: /*
: No such file or directory
/home/ccpharma/public_html/components/com_osservicesbooking/cron.php: line 10: */
: No such file or directory
/home/ccpharma/public_html/components/com_osservicesbooking/cron.php: line 11: //: is a directory
/home/ccpharma/public_html/components/com_osservicesbooking/cron.php: line 12: syntax error near unexpected token `E_ERROR'
/home/ccpharma/public_html/components/com_osservicesbooking/cron.php: line 12: `error_reporting(E_ERROR | E_PARSE | E_COMPILE_ERROR);
'
Can you assist?
 
Thanks,
Ian and Stu
  • Last edit: 3 years 11 months ago by Stuart. Reason: Solved

    Please Log in or Create an account to join the conversation.

    More
    3 years 11 months ago #142644 by Mr. Dam
    Replied by Mr. Dam on topic Problems setting up cron successfully
    Hi,
    As i see in the error log, the cron task setting seems wrong. You should contact with hosting admin and ask them the correct format of the cron task. I guest it should have something like [php] at first of command line, for example:
    php /home/ccpharma/public_html....

    Thanks
    Dam

    Please Log in or Create an account to join the conversation.

    • Stuart
    • Topic Author
    • Offline
    • Junior Member
    • Junior Member
    More
    3 years 11 months ago #142658 by Stuart
    Replied by Stuart on topic Problems setting up cron successfully
    I added 'php ' in front of the path in cpanel's cron manager and it's working.

    Thanks,
    Ian and Stu

    Please Log in or Create an account to join the conversation.

    More
    3 years 11 months ago #142709 by Mr. Dam
    Replied by Mr. Dam on topic Problems setting up cron successfully
    OK, great

    Please Log in or Create an account to join the conversation.

    Moderators: Mr. Dam