Skip to content
PHP Logo

What are common pitfalls when setting up cronjobs for PHP scripts?

One common pitfall when setting up cronjobs for PHP scripts is not specifying the correct path to the PHP executable in the cronjob command. To solve this, you should always use the full path to the PHP executable in your cronjob command.

php
* * * * * /usr/bin/php /path/to/your/script.php