J jasne Verified User Joined Sep 28, 2011 Messages 52 Apr 5, 2023 #1 Hello guys, I can run command "php" via ssh, this runs default php version (8.1) What if I have installed other (second) version ex. php 7.4 , how I can run this version via ssh ?
Hello guys, I can run command "php" via ssh, this runs default php version (8.1) What if I have installed other (second) version ex. php 7.4 , how I can run this version via ssh ?
S sparek Verified User Joined Jun 27, 2019 Messages 495 Apr 5, 2023 #2 You have to specify the full path, i.e. /usr/local/phpXX/bin/php For PHP 8.0 this would be: /usr/local/php80/bin/php For PHP 7.4 this would be: /usr/local/php74/bin/php Just change accordingly to whatever PHP version you want and what you have installed.
You have to specify the full path, i.e. /usr/local/phpXX/bin/php For PHP 8.0 this would be: /usr/local/php80/bin/php For PHP 7.4 this would be: /usr/local/php74/bin/php Just change accordingly to whatever PHP version you want and what you have installed.