server wide cron job

Discussion in 'General' started by manarak, Dec 2, 2012.

  1. manarak

    manarak Member

    I need to run some cron jobs on PHP scripts that should have server-wide access, what would be the best location to store them and how to set them up so that they don't have any permissions issues?
  2. falko

    falko Super Moderator ISPConfig Developer

    You can set them up as root by running
    crontab -e
  3. manarak

    manarak Member

    thank you Falko

    I need to test the script first, is there a way to execute the PHP script from http with root privileges?

    would something like that work if I add it to /etc/sudoers
    web1 ALL=(ALL) NOPASSWD: /usr/bin/php -f /var/www/clients/client1/web/myscript.php

Share This Page