Greetings. Got site on codeigniter. The Cron.php file is located in the site.com \ application \ controllers \ Cron.php folder. How to create a query to launch cron. Vesta panel.

    1 answer 1

    Welcome!

    php5 /home/юзер_весты/web/сайт_юзера/public_shtml/index.php cron функция_в_контроллере_Крон

    That is, if you need to call the removeUsersWithStatus($status) method with the $status=123 parameter from the Cron controller for the my-site.com site of the user VestaUserName and at the same time the my-site.com website uses https (that is, it is in the public_shtml folder, and not just public_html), the OS uses php5 to invoke scripts, the line will look like

    php5 /home/VestaUserName/web/my-site.com/public_shtml/index.php cron removeUsersWithStatus 123