Cron job not working Ubuntu Lemp stack

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/ 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

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Try using the full PHP CLI path,

 */15 * * * * php -f /var/www/

Also this Q&A might have a solution -