Control Web Panel

WebPanel => PHP Selector => Topic started by: dftd on November 02, 2020, 07:17:31 PM

Title: Different PHP CLI version for just 1 command
Post by: dftd 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.
Title: Re: Different PHP CLI version for just 1 command
Post by: dftd 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.