Login
Register
Home
Wiki Knowledge Base
FreeDNS
Facebook
Linux Support
Control Web Panel
MENU
Home
Help
Search
Login
Register
Control Web Panel
»
WebPanel
»
PHP Selector
»
Different PHP CLI version for just 1 command
« previous
next »
Print
Pages: [
1
]
Author
Topic: Different PHP CLI version for just 1 command (Read 5602 times)
0 Members and 1 Guest are viewing this topic.
dftd
Newbie
Posts: 2
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.
Logged
dftd
Newbie
Posts: 2
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.
Logged
Print
Pages: [
1
]
« previous
next »
Control Web Panel
»
WebPanel
»
PHP Selector
»
Different PHP CLI version for just 1 command