Author Topic: Different PHP CLI version for just 1 command  (Read 5676 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Different PHP CLI version for just 1 command
« on: November 02, 2020, 07:17:31 PM »
Hi!

My default PHP version is 7.3. I have CWP Pro and PHP 5.6 installed via PHP Selector V2, which is used on 1 domain.
How do I run a command in CLI with PHP 5.6, without changing the default CLI version?

Thanks.

Offline
*
Re: Different PHP CLI version for just 1 command
« Reply #1 on: November 02, 2020, 07:28:51 PM »
`opt/alt/php56/bin/php` instead of `php` in CLI.
Took me a while to find the real path.