Monday, 27 July 2020

Install PHP 7.4 php-fpm on Ubuntu and Debian

 

Start with adding the repository kindly provided by sury.org

sudo apt-get install apt-transport-https -y
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list
 

Update your package list

sudo apt-get update
 

Install the PHP 7.4 packages for nginx and php-fpm functionality

sudo apt-get install php7.4-cli php7.4-curl php7.4-mysql php7.4-fpm php7.4-gd php7.4-xml php7.4-mbstring php7.4-zip php7.4-soap php7.4-dev -y
 

Now we can update the PHP command line binary shorthand php to use the PHP 7.4 CLI binary.

 
 
Copyright © 2017 hackkode.com
The content is copyrighted to hackkode.com and may not be reproduced on other websites.

Powered by Allsymptoms.org