(2024.2) Oracle Linux 8
You can, for the most part, follow the same instructions for CentOS 8 with a bit of Pre-Setup.
Make sure the AppStream Repo is installed
vi /etc/yum.repos.d/appstream.repo
# paste in
[ol8_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/appstream/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
#run dnf update
dnf update
Install/Enable Firewalld
dnf install firewalld
systemctl enable firewalld
systemctl start firewalld
Install PHP
dnf module reset php
dnf module enable php:7.4
dnf -y install php
dnf -y install php-process php-xml php-pecl-apcu php-gd php-intl php-mbstring php-pdo php-soap php-pecl-zip php-mysqlnd