CRON

Discussion in 'General' started by Emsanator, Jan 19, 2022.

Tags:
  1. Emsanator

    Emsanator Member

    Hello,
    Unfortunately, I was not successful in running files with CRON.
    Can you help with this?

    Examples;
    Code:
    /usr/bin/php -q /var/www/clients/client2/web2/folder/example.php
    , and
    Code:
    wget https://example.com/app/cron/example.php
    This is at the top of the PHP File;
    Code:
    #!/usr/bin/php -q
    But it still doesn't work, I guess I'm missing something.
    Thank you.
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Are you using chroot cronjobs? If so, the path to the script should be just /folder/example.php. For the second, enter just the url as the cronjob.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Just enter the URL in the cronjob command field, do not put wget in front of it:

    Code:
    https://example.com/app/cron/example.php
     
  4. Emsanator

    Emsanator Member

Share This Page