How to upgrade PHP to 7.4 on Centos 7
Article ID: 393 | Rating: 5/5 from 1 votes | Last Updated: Sat, May 1, 2021 at 1:04 PM
How to upgrade PHP to 7.4 in centos 7 ?
Enter the following commands on the terminal to upgrade PHP:
1 . To install the latest PHP 7, you need to turn on EPEL and Remi repository.
2.Next, you need to install yum-util packages
root@gateway:~# yum install yum-utils -y
3. Enable remi repo as per the desired version, for PHP 7.4,
If you want to install PHP 7.3, you can use the following command, root@gateway: ~ # yum-config-manager --enable remi-php73
root@gateway:~# yum-config-manager --enable remi-php74
root@gateway:~# yum update
4.Now install PHP 7.4 with all necessary modules with the command below.