Setting up a cron job with Webmin

后端 未结 5 1026
后悔当初
后悔当初 2021-02-04 14:44

I am trying to setup a Cron job using Webmin to run every 5 min. It needs to target a .php file and run the php script in that file. When I enter the path to the file in the \

5条回答
  •  执念已碎
    2021-02-04 15:22

    1. System -> Scheduled Cron Jobs
    2. Click Create a new scheduled cron job.
    3. In Command box enter /usr/bin/php -q /var/www/path/to/your_php_script.php
    4. Click "Times and dates selected below .." radio button
    5. Click "Selected.." under Minutes section
    6. Select 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 (use control key) and click 'Save' button.

提交回复
热议问题