Run PHP script every 10 minutes with Crontab

Posted on January 22, 2018 at 1:06 am

Do you need to run a PHP script every 10 minutes with crontab?

Here is an example line you can add to /etc/crontab:

# Run this PHP script every 10 minutes
*/10 * * * * user cd /var/sites/website.com/htdocs; php -f script.php >/dev/null 2>&1 &

Change “user” with the Linux user.

Other Posts

Updated Posts