Centos 8 in AWS – PHP install error

user1179459 asked:

When i try to install PHP with Remi repository i get the below error

         dnf module list php
        Remi's Modular repository for Enterprise Linux 8 - aarch64   
        Errors during downloading metadata for repository 'remi-modular':
          - Status code: 403 for http://cdn.remirepo.net/enterprise/8/modular/aarch64/mirror (IP: 176.31.103.194)
          - Status code: 403 for http://cdn.remirepo.net/enterprise/8/modular/aarch64/mirror (IP: 195.154.241.117)
        Error: Failed to download metadata for repo 'remi-modular': 
    Cannot prepare internal mirrorlist: Status code: 403 for
http://cdn.remirepo.net/enterprise/8/modular/aarch64/mirror (IP: 176.31.103.194)

If visit the page not found i get an error called

Only mirrorlist are served.
Use https://rpms.remirepo.net/ for content.

Below is how i installed the Remi

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
yum update
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm

My answer:


The Remi repository packages are currently built only for the x86_64 architecture, and not for aarch64. You will not be able to use remi packages on AWS Graviton instances until Remi chooses to build the packages for the aarch64 architecture.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.