How to install PHP 8 to 64-bit Arm architecture(aarch64)?

5.1k Views Asked by At

I use Oracle Linux with 64-bit Arm architecture in Oracle Cloud Ampere A1 Compute.

Since official Oracle Linux only support up to 7.4 and Remi repo also doesn't support aarch64 , how to install PHP 8 to aarch64/arm64 especially oracle Linux or other RHEL base Linux?

I don't want to build from source, but if it's the only way to install please give me steps by steps. Because I tried to build from the source but failed with so many errors (I tried with some different configs).

I think Oracle Ampere A1 is similar to AWS Graviton2, but I don't see any reference also how to install PHP 8 to AWS EC2 Graviton2. Is PHP8 really not supported on arm64?

1

There are 1 best solutions below

1
On

To list available Module Streams for PHP:

$ dnf module list php

To install PHP 7.4 :

$ sudo dnf install @php:8.0