I’m trying to get my cron to work in Plesk Obsidian shared hosting on CentOS Linux 7.9.2009
Thanks. Your help with an example would be most appreciated.
I’m trying to get my cron to work in Plesk Obsidian shared hosting on CentOS Linux 7.9.2009
Thanks. Your help with an example would be most appreciated.
Hi,
I’m not familiar with Plesk, is their cron system different?
It appears so. This is what I have. /opt/plesk/php/7.4/bin/php -d register_argc_argv=On /var/www/vhosts/domainname.com/httpdocs/ninja/artisan schedule:run >> /dev/null 2>&1
When I run it, I get- Task “/opt/plesk/php/7.4/bin/php -d register_argc_argv=On /var/www/vhosts/domainname.com/httpdocs/ninja/artisan schedule:run >> /dev/null 2>&1” completed with error in 0 seconds.
@david any ideas on this?
I’m unfamiliar with plesk, but as long as the command is run under the webuser and execute successfully php artisan schedule:run every minute, that is all that is required.
Thanks, David. I got it
Hi DGM, i’m having similar problem as yours, can you share with me how to solve this matter?
Thanks
Referencing to the guide, would you like to try this in the command:
cd /var/www/vhosts/xxdomain.com/ && /opt/plesk/php/7.4/bin/php artisan schedule:run >> /dev/null 2>&1
Thank you.
What was your solution?
Supported by Invoice Ninja and Event Schedule