I’m trying to install PHP 8.1 on CentOS 7 using the Remi repository, but I’m facing issues with the installation. The Remi repository remi-php81
is enabled, but when I attempt to install PHP 8.1 using yum
, I get the error:
No package php available. Error: Nothing to do
Here are the steps I’ve already tried:
Verified Remi Repository:
I checked that the remi-php81
repository is enabled:
yum repolist enabled | grep remi
Output:
remi-php81 Remi's PHP 8.1 RPM repository for Enterprise Linux 7 - 6+383
remi-safe Safe Remi's RPM repository for Enterprise Linux 7 - x86 217+5379
Attempted PHP Installation:
I attempted to install PHP 8.1 explicitly with:
yum install php --enablerepo=remi-php81
But I still receive the message: No package php available
.
Verified Available Packages:
I ran:
yum list available php* --enablerepo=remi-php81
but no PHP packages are listed.
Confirmed PHP Package Availability in Repository:
I checked if the PHP 8.1 package is available in the Remi repository:
yum list available | grep php
But no PHP packages are shown as available for installation.
Could someone help me understand what I might be missing or if there are other steps to properly install PHP 8.1 on CentOS 7?
System Details:
- CentOS 7
- Remi repository (
remi-php81
) is enabled - PHP 8.1 package should be available in
remi-php81