-3

i have a problem with my cronjob.

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

why is my cronjob not working? not updating everyminute.

Dharman
  • 30,962
  • 25
  • 85
  • 135
kazz
  • 3
  • 1

1 Answers1

1

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.

Satya
  • 8,693
  • 5
  • 34
  • 55
  • 2
    If the script has a valid shebang you don't need to put the interpreter on the command line. But the question is too broad, too vague, and almost certainly a duplicate. – tripleee Oct 10 '18 at 05:44
  • 1
    :) glad that I could help – Satya Oct 10 '18 at 05:48