Guide To Install PHP 7.4 on Ubuntu 18.04

How to Install PHP 7.4 on Ubuntu?. Welcome to today’s guide on how to install PHP 7.4 on Ubuntu 18.04 LTS Linux. The PHP release 7.4.0 has been made available for the general public and for use in Production environments.




Step 1: Add PHP PPA Repository

We need to add ppa:ondrej/php PPA repository which has the latest build packages of PHP.

sudo apt-get update
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update




Step 2: Install PHP 7.4 on Ubuntu 18.04

Install PHP 7.4 on Ubuntu 18.04 by run command in your terminal:

sudo apt -y install php7.4




Check your PHP Version

php -v

PHP 7.4.4 (cli) (built: Mar 20 2020 13:47:45) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.4, Copyright (c), by Zend Technologies

Use the next command to install additional packages:

sudo apt-get install php7.4-xxx




Done.

Recent graduated from Universitas Gadjah Mada, Yogyakarta, Indonesia and work as a Researcher at National Institute of Posts, Telecoms and ICT. Interested in Pattern Recognition and Artificial Intelligent.

Leave a reply:

Your email address will not be published.

Site Footer