I have a problem getting a cron job to work with my Lemp stack. I have a tracker installed (CPVLab) that requires two php scripts run with cron jobs. One appears to be working with wget and url to php script. I can see start and finished entries in CPVLab error log. I tried running the other cron job with wget but it starts and never finishes then gives php errors., I am now trying this syntax: */15 * * * * php -f /var/www/mysite.com/htdocs/cron-wurfl.php This gives the same problem, starts then does not finish. CPVLab is encoded with ioncube but maybe that’s not the issue here. Advice much appreciated. Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Try using the full PHP CLI path,
*/15 * * * * php -f /var/www/mysite.com/htdocs/cron-wurfl.php
Also this Q&A might have a solution - https://www.digitalocean.com/community/questions/cronjob-not-running-on-ubuntu-server?answer=22492
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.