Run cron for file other than web directory

Discussion in 'Installation/Configuration' started by laptop_user, Aug 6, 2013.

  1. laptop_user

    laptop_user Member


    1. Anyone know how can I run file other than web directory. Currently this command didn't worked:

    *       *       *       *       *       web1    /usr/bin/php -f /usr/local/ispconfig/my_script.php
    2. Also after I choose my website at cron job page, click save and when I want to change the website again, system doesn't allowed me. Why is that?

    Thanks in advance

    Edit - I think this thread should be moved to Installation and Configuration subforum
    Last edited: Aug 6, 2013
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    1) The user web1 has no permissions to access the ispconfig directory. Choose another directory for your script which is accessible for the web1 user and ensure that the cronjob is not jailed.

    2) Cronjobs are bound to a website and run under the user of that site, so you cant change the website after the cronjob was added.

Share This Page