Skip to content

Instantly share code, notes, and snippets.

@szabacsik
Created February 17, 2022 10:52
Show Gist options
  • Save szabacsik/476624dbcc30c1ea2afda65abbed42c9 to your computer and use it in GitHub Desktop.
Save szabacsik/476624dbcc30c1ea2afda65abbed42c9 to your computer and use it in GitHub Desktop.
Install or Upgrade PHP 8.1.3 on CentOS 7.9.2009
# yum remove php* -y
yum clean all
yum makecache
yum update -y
yum install dnf -y
dnf upgrade --refresh
yum-config-manager --disable remi-php74
yum-config-manager --enable remi-php81
dnf install php php-cli php-common php-pdo php-xml php-mbstring php-zip php-devel php-curl php-pear php-json php-xdebug -y
yum clean all
mkdir -p /var/www/html
chown apache -R /var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment