Cyberpanel - php on cron and shell
Z Wiedza
Wersja z dnia 14:45, 11 lis 2024 autorstwa Nieznosnik (dyskusja | edycje) (Utworzono nową stronę "How to use specific PHP Version in your Cron Jobs? Some applications requires you to set cron jobs and they require PHP CLI executable. Now rather then changing default global php binary version, you can use direct path to that CLI. For example an application requires that its script should be running through PHP 7.2, you can use the direct path for its binary rather then updating a global binary, such as /usr/local/lsws/lsphp81/bin/php <your command goes here>")
How to use specific PHP Version in your Cron Jobs?
Some applications requires you to set cron jobs and they require PHP CLI executable. Now rather then changing default global php binary version, you can use direct path to that CLI.
For example an application requires that its script should be running through PHP 7.2, you can use the direct path for its binary rather then updating a global binary, such as
/usr/local/lsws/lsphp81/bin/php <your command goes here>