- Posts: 28
- Thank you received: 0
Problems setting up cron successfully
- Stuart
- Topic Author
- Offline
- Junior Member
-
Less
More
3 years 11 months ago - 3 years 11 months ago #142611
by Stuart
Problems setting up cron successfully (solved) was created 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
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 12961
- Thank you received: 1679
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
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
-
Less
More
- Posts: 28
- Thank you received: 0
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
Thanks,
Ian and Stu
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 12961
- Thank you received: 1679
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
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.