@Hari No. Plesk typically installs PHP in /opt/plesk/php/7.4/bin
so what is the output of /opt/plesk/php/7.4/bin/php -v
?
Should be
PHP 7.4.28 (cli) (built: Feb 18 2022 07:57:20) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader + ionCube24 v11.0.1, Copyright (c) 2002-2022, by ionCube Ltd.
with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
Therefore, PHP 8 should be in /opt/plesk/php/8.0/bin
, so you should also get output from /opt/plesk/php/8.0/bin/php -v
as below
PHP 8.0.16 (cli) (built: Feb 18 2022 07:57:20) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.16, Copyright (c) Zend Technologies
with Zend OPcache v8.0.16, Copyright (c), by Zend Technologies
This means that because your environment variable is missing, you have to specify the full path to PHP 8, so instead of just php
, you need /opt/plesk/php/8.0/bin/php
Welcome to Plesk