Topic: Installing php8.1.5 from Remi repository archive space
I need to install php8.1.5 at the request of the customer.
I installed php in my validation environment according to what is written in the topic below.
" Remi's RPM repository - Forum → User support → Problems with php 5.3, how to reinstall 5.2.10? "
But the binary doesn't exist and doesn't seem to work.
I am using Amazon Linux 2 and other php versions have been removed.
What mistakes do you think I have made in my work?
[root@ip-172-16-4-143 ec2-user]# wget https://rpms.remirepo.net/store/php/common/8.1.5/php-common-8.1.5-1.el7.remi.x86_64.rpm
--2022-06-30 00:21:37--
Resolving rpms.remirepo.net (rpms.remirepo.net)... 109.238.14.107, 2a00:c70:1:109:238:14:107:1
Connecting to rpms.remirepo.net (rpms.remirepo.net)|109.238.14.107|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1283884 (1.2M) [application/x-rpm]
Saving to: ‘php-common-8.1.5-1.el7.remi.x86_64.rpm’
100%[=================================================================================>] 1,283,884 380KB/s in 3.3s
2022-06-30 00:21:41 (380 KB/s) - ‘php-common-8.1.5-1.el7.remi.x86_64.rpm’ saved [1283884/1283884]
[root@ip-172-16-4-143 ec2-user]# rpm -Uvh php-common-8.1.5-1.el7.remi.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:php-common-8.1.5-1.el7.remi ################################# [100%]
[root@ip-172-16-4-143 ec2-user]# php -v
bash: php: command not found
[root@ip-172-16-4-143 ec2-user]# whereis php
php: /usr/lib64/php /etc/php.d /etc/php.ini /usr/share/php