I write same commands but it shows php 5.4.6 now.Looks like you have no php-version which shipped with the OS. Install PHP 7.3 on your system:
Code:yum install yum-utils –y yum install epel-release –y yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum-config-manager ––enable remi–php73 yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql –y php –v
Code:
[root@srv ~]# php -v
PHP 5.4.16 (cli) (built: Apr 1 2020 04:07:17)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with Zend OPcache v7.0.5, Copyright (c) 1999-2015, by Zend Technologies