Osclass Support Forums
General osclass questions => General discussion => Topic started by: ads365 on January 25, 2021, 04:06:51 PM
-
I disabled the CronJob in Admin Panel and setup the Cron Command in Cpanel . I am using BigRock.in Server
I Used below command for Cron Job
/usr/local/bin/ea-php99/home/s**p***/public_html/ads365.in/oc-includes/osclass/cron.php
I just needs to know whether it is correct command or need some amendment? Above is the exact command which I am using in my cPanel.
-
@ads365
You should check such details with your hosting provider.
-
@ads365
You should check such details with your hosting provider.
Ok I shall Check
-
@ads365
Btw. you should be able to enter notification URL in case there is problem with your cron, you will get email.
-
@ads365
Btw. you should be able to enter notification URL in case there is problem with your cron, you will get email.
I am getting the notification on email stating below:
/home/s**co***/public_html/ads365.in/oc-includes/osclass/cron.php: line 1: syntax error near unexpected token `('
/home/s**p**/public_html/ads365.in/oc-includes/osclass/cron.php: line 1: `<?php if ( ! defined( 'ABS_PATH' ) ) {
'
I checked the File also but found nothing like that..
See below code and screen shot
<?php if ( ! defined( 'ABS_PATH' ) ) {
exit( 'ABS_PATH is not loaded. Direct access is not allowed.' );
}
-
@ads365
Btw. you should be able to enter notification URL in case there is problem with your cron, you will get email.
I am getting the notification on email stating below:
/home/s**co***/public_html/ads365.in/oc-includes/osclass/cron.php: line 1: syntax error near unexpected token `('
/home/s**p**/public_html/ads365.in/oc-includes/osclass/cron.php: line 1: `<?php if ( ! defined( 'ABS_PATH' ) ) {
'
I checked the File also but found nothing like that..
See below code and screen shot
<?php if ( ! defined( 'ABS_PATH' ) ) {
exit( 'ABS_PATH is not loaded. Direct access is not allowed.' );
}
Any Update and solution for above Issue ? Waiting for the reply...
-
exact same problem here. any solutions?
-
You cannot execute the file directly because of security reasons
For Directadmin my setup that works is: php /home/s**p***/domains/your*domain.com/public_html/index.php -p cron -t daily
php /home/s**p***/domains/your*domain.com/public_html/index.php -p cron -t hourly
php /home/s**p***/domains/your*domain.com/public_html/index.php -p cron -t weekly
-
You cannot execute the file directly because of security reasons
For Directadmin my setup that works is: php /home/s**p***/domains/your*domain.com/public_html/index.php -p cron -t daily
php /home/s**p***/domains/your*domain.com/public_html/index.php -p cron -t hourly
php /home/s**p***/domains/your*domain.com/public_html/index.php -p cron -t weekly
Thanks for your prompt response! I assume this is for an OsClass install, right?
Do you know the suffix for running it every minute?
-
It is for Osclass you can set suffix to run hourly cron every minute in your cPanel normally