PHP version update (7.2 to 7.4 )

Please go through this

This is to inform you that PHP ending their security support for the version PHP 7.2 on 30 November 2020.We are using this version since last 3 year for most of our live websites.
So we need to upgrade the versions in local to PHP 7.4 for new website development and requirements.please install php 7.4 as per your requirements from below steps in Ubuntu 16.04 & 18.04
sudo apt-get update
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt -y install php7.4
For switching the php versions as per your project requirements use below command
sudo a2dismod php7.2 (to disable)
sudo a2enmod php7.4  (to enable ) 
sudo service apache2 restart
to revert back to 7.2  use
sudo a2dismod php7.4 
sudo a2enmod php7.2 
sudo service apache2 restart
Also Please install the php7.4 extensions

sudo apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s