Hey everyone!
I have a problem setting up a cron job that should run every day at midnight.
I have followed this guide, and when testing it the way it is written in the guide (every 10 minutes), it works as expected:
*/10 * * * * cd /var/www/example.com/htdocs; php /var/www/example.com/htdocs/wp-cron.php > /dev/null 2>&1
When I change the code to this:
00 00 * * * cd /var/www/example.com/htdocs; php /var/www/example.com/htdocs/wp-cron.php > /dev/null 2>&1
…it doesn’t work anymore and the cron job is not running. Is this not the correct way to run it at midnight every day?
Would appreciate some help!
Thanks!
// Jens.