By jquevedo
I try to run a php file from a cron but this not work
sudo service cron status cron start/running, process 1447
crontab -e
I test with differents setups but none worked.
When run the command over sheel it works: /usr/bin/php5 /var/www//html/folder/phpscript.php
Even when I setup a cron like * * * * * echo ‘This is a test’ > /var/log/file.log, it works.
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!
Give webcron like easycron.com a try, it’s free and does just that and more.
XXXXXXX CRON[14346]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
did you search logs for errors ?
cat '/var/log/syslog' | grep -i 'cron'
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.