Search code examples
phpcron

How to set Cronjob in ubuntu 16.04


i have a problem with my cronjob.

* * * * * /var/www/html/AutoUpdate.php

why is my cronjob not working? not updating everyminute.


Solution

  • The job is not running because you have not specified the program that should run .php files . Just change it to include the location of php e.g.

    * * * * * /usr/bin/php /var/www/html/AutoUpdate.php
    

    And you should be through.