Hello. There is a server on Linux, and there is a Shell client. What command do I need to execute so that the php file runs every 30 minutes? the file lies along the path: /var/www/www-root/data/www/site.ru/folder/folder2/info.php

    1 answer 1

    Where do you need such a team

     0/30 * * * * php /var/www/www-root/data/www/site.ru/folder/folder2/info.php 

    But it can happen so casually that a php binary is either inaccessible for the krone (then you need to specify the full path like /usr/bin/php , whereis php will tell) or php binary is called a little differently ( php7 , php-cli or something new it is called /usr/bin/php7.1 ).

    But maybe it would be better to pull this script curl'om through the web server. It can be more convenient.