Hello Guyz, In this tutorial I will show you how to install php7.4 ubuntu. So as you know there are many scripts that are run only in php and also WordPress cms need php to work properly. So let’s check how to install it.
Step1: Installing PHP 7.4 in Ubuntu
Note: If you are using the latest version of ubuntu which is 20.04. Don’t require adding php repositories in your packages. Just Simple type the command below.
sudo apt update
sudo apt install php7.4
If you need to check the php version type command below.
PHP 7.4.10 (cli) (built: Sep 9 2020 06:36:14) ( NTS)
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.10, Copyright (c), by Zend Technologies
We are completed 50% work from this article How to Install PHP 7.4 Ubuntu now let’s go to next step.
Also Read: Earn Money Online
Step2: Installing modules for php7.4 (Important Step)
Important: There are some very important module to run PHP perfectly. So let’s check how to install the important module.
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
After your php install successfully.
Know More: click here
Some Most Asked Question
Question:- Where is the php.ini file?
Answer:- If you are using ubuntu’s latest version and apache2 webserver. Your file location is:- /etc/php/7.4/apache2/php.ini
Question:- Can I run multiple PHP versions in Ubuntu?
Answer:- Yes, you can use multiple Php versions in the same ubuntu server. But I recommended use only one because it takes a load on your server.
Also Read: Create Own File Sharing Website
So in this article, I show you how to install PHP 7.4 on your Ubuntu VPS/server. Don’t forget to Step:2 because it is very important. If you have any doubt or find any mistake on post leave comment below or contact to firstname.lastname@example.org