#290: PHP 8.1 Installation - Rmhibbert/oe2-group-c GitHub Wiki
Link to the ticket: https://rt.dataraster.com/Ticket/Display.html?id=290&results=a15aaf1986e73ef64f563025864b06f8
Step by step
On the app server
Description: Add PHP repository and update packages:
Command:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
Description: Install PHP 7.4 and required extensions:
Command:
sudo apt install php7.4 libapache2-mod-php7.4 php7.4-common
php7.4-mbstring php7.4-xmlrpc php7.4-soap php7.4-apcu
php7.4-smbclient php7.4-ldap php7.4-redis php7.4-gd
php7.4-xml php7.4-intl php7.4-json php7.4-imagick
php7.4-zip php7.4-mysql php7.4-curl php7.4-bz2 php7.4-gmp
Description: Configure PHP memory limit:
Command:
sudo sed -i 's/memory_limit = .*/memory_limit = 512M/' /etc/php/7.4/apache2/php.ini
Description: Verify PHP version - should be 7.4
Command:
php -v