Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to setup a cronjob for PHP script in ubuntu
I have a script just I want to know how to set it.
* 3 * * * /var/www/html/booking_cron.php
You need to call php binary with argument of the php script:
* 3 * * * /usr/bin/php /var/www/html/booking_cron.php
Be sure your path to php binary is correct.
To find the path to php: which php or find / -name php
find / -name php