Install and Configure PHP 8 (magento)

Add a Linux repository which includes all PHP versions:
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:ondrej/php

Install PHP in Apache
$ sudo apt update
$ sudo apt install php8.0 libapache2-mod-php8.0
$ sudo systemctl restart apache2

Installing PHP extensions:
$ sudo apt install php8.0-{Extension-Name}

Example
$ sudo apt install php8.0-xml php8.0-intl

For Magento install below php extensions:

  • ext-bcmath
  • ext-ctype
  • ext-curl
  • ext-dom
  • ext-gd
  • ext-hash
  • ext-iconv
  • ext-intl
  • ext-mbstring
  • ext-openssl
  • ext-pdo_mysql
  • ext-simplexml
  • ext-soap
  • ext-xsl
  • ext-zip
  • ext-sockets

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>