Softaculous


Topic : Laravel CRON in Webuzo


Posted By: hidden76 on November 25, 2018, 3:51 pm
I have a laravel system, I have already worked with other systems and

the cron has always worked for me, however for this one that uses

LARAVEL has not worked for me, what would be the solution for this

problem, I send you the images







what would be the way to create a cron for that address?







Thanks

Posted By: Dhanya on November 26, 2018, 1:21 pm | Post: 1
Hi,

You need to set the cron job as follows:
/usr/local/apps/php[version]/bin/php /home/admin/public_html/donasionline/artisan schedule:run

The PHP version is the default PHP version which you are using on your webuzo panel.

In order to check if it works or not, you need to remove the '>> /dev/null 2>&1' from cronjob and execute the command on commandline.

Also you can check the output of the cron by directing its response in a file as ' >> /home/admin/response.log'

Once set, you need to check the response.log file for output og the cron command.

Let us know if you have any further queries.

Posted By: hidden76 on November 26, 2018, 2:30 pm | Post: 2
Hi,
Still not working for me :(
see in the image, CRON still not work after i am set the command to

/usr/local/apps/php71/bin/php /home/admin/public_html/donasionline/artisan schedule:run >> /dev/null 2>&1
but if i try the command in commandline, working properly.Why ?

Posted By: hidden76 on November 26, 2018, 2:30 pm | Post: 3
Hi,
Still not working for me :(
see in the image, CRON still not work after i am set the command to

/usr/local/apps/php71/bin/php /home/admin/public_html/donasionline/artisan schedule:run >> /dev/null 2>&1
but if i try the command in commandline, working properly.Why ?

Posted By: hidden76 on November 26, 2018, 2:31 pm | Post: 4
Hi,
Still not working for me :(
see in the image, CRON still not work after i am set the command to

/usr/local/apps/php71/bin/php /home/admin/public_html/donasionline/artisan schedule:run >> /dev/null 2>&1
but if i try the command in commandline, working properly.Why ?

Posted By: hidden76 on November 26, 2018, 2:31 pm | Post: 5
Hi,
Still not working for me :(
see in the image, CRON still not work after i am set the command to

/usr/local/apps/php71/bin/php /home/admin/public_html/donasionline/artisan schedule:run >> /dev/null 2>&1
but if i try the command in commandline, working properly.Why ?

Posted By: hidden76 on November 26, 2018, 2:32 pm | Post: 6
Hi,
Still not working for me :(
see in the image, CRON still not work after i am set the command to

/usr/local/apps/php71/bin/php /home/admin/public_html/donasionline/artisan schedule:run >> /dev/null 2>&1
but if i try the command in commandline, working properly.Why ?

Posted By: lesmond on November 26, 2018, 6:22 pm | Post: 7
Was there ANY need to post 5 Times!  :??:

-----------------------
Buildz Hosting

Posted By: Dhanya on November 27, 2018, 6:23 am | Post: 8
Hi,

Did you check the cron by setting the cron command as below:
/usr/local/apps/php71/bin/php /home/admin/public_html/donasionline/artisan schedule:run >> /home/admin/response.log

After a minute, check the response.log file for error if any.

Let us know.

Posted By: hidden76 on November 27, 2018, 9:51 am | Post: 9
The content of response.log is

Running scheduled command: '/usr/local/apps/php71/bin/php' 'artisan' transaction:clean > '/dev/null' 2>&1
What should I do now?

the cron still not work for me...

Posted By: hidden76 on November 27, 2018, 10:18 am | Post: 10
oh i am sorry, the post above is in the command prompt.but if i paste

/usr/local/apps/php71/bin/php /home/admin/public_html/donasionline/artisan schedule:run >> /home/admin/response.log
in webuzo, the response.log is unavailable in /home/admin
what should i do now?

Posted By: Dhanya on November 28, 2018, 6:41 am | Post: 11
Hi,

Can you open a support ticket with Webuzo support by following the below URL in order to check the issue:
https://www.softaculous.com/support/

Posted By: Dhanya on November 28, 2018, 11:46 am | Post: 12
Hi,

We have resolved your issue.

Let us know if you face any issues further.

Posted By: hidden76 on November 28, 2018, 12:10 pm | Post: 13
Can you describe, what is the problem?
Thanks before..

Posted By: Dhanya on November 28, 2018, 1:17 pm | Post: 14
Hi,

The issue was that cronjobs weren't working on your server since cronie which is required to schedule a cron job was not installed on your server. We have installed it and now cronjobs are working fine.

Let us know if you face any issues further.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.