Today, in this article, we show how to install PHP 7.4 on Ubuntu 22.04 LTS Jammy Linux. The latest PHP minor update, PHP 7.4, will be issued before PHP 8 arrives. New features have been added, and there are some changes to watch out for, as with each update. I’ll discuss what’s new in PHP 7.4, what’s being removed, and when you should consider upgrading the version of PHP your site uses in this article.
As PHP continues to change and advance, several positive and new tweaks features It has been done. Most modifications are “non-stop”, so you can update and your site will continue to function normally. (Assuming you are upgrading from a previous version of PHP 7)
Since PHP is a scripting language, an interpreter converts each line of the language into a set of machine commands. More than 80% of websites on the Internet run on web servers that are powered by PHP, which in turn governs how these websites behave. Thousands of websites and web platforms were powered by it thanks to the deployment of various web servers like Apache. We have mentioned below the steps to install PHP 7.4 on Ubuntu 22.04 LTS Jammy Linux.
Steps to Install PHP 7.4 on Ubuntu 22.04 LTS Jammy Linux
Step 1: Run system update
sudo apt update && sudo apt upgrade
Step 2: Add Ondrej PPA Repository on Ubuntu 22.04
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php -y
Step 3: Install PHP 7.4 on Ubuntu 22.04
sudo apt install php7.4
sudo apt install php7.4-{cli,common,curl,zip,gd,mysql,xml,mbstring,json,intl}
Step 4: Define PHP7.4 like the standard version
sudo update-alternatives –config php
Step 5: Uninstall PHP and remove Ondrej PPA
sudo apt autoremove –purge php7.4
sudo add-apt-repository –remove ppa:ondrej/php -y
Final Words
We hope you like our article on how to install PHP 7.4 on Ubuntu 22.04 LTS Jammy Linux. To create web applications, programmers use PHP. In order for the Ubuntu system to operate the application created on it, the PHP packages must be installed. E-commerce websites, blogs and API applications are often built with it. You’ve come to the right place if you’re trying to install PHP quickly on Ubuntu 22.04.