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.
 
# yum install epel-release
 

yum install  http://rpms.remirepo.net/enterprise/remi-release-7.rpm

 

  2. Next, you need to install yum-util packages
 
# yum install yum-utils -y
 3. Enable remi repo as per the desired PHP version, for PHP 7.4,
 

If you want to install PHP 7.3, you can use the following command, # yum-config-manager --enable remi-php73

If you want to install PHP 7.4, use below command. 

# yum-config-manager --enable remi-php74

# yum update 

    4. Now install PHP 7.4 with all necessary modules with the command below.
 
# yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-process php-ldap 
 
That's all. 
  • 0 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

Protocol Buffer Compiler Installation

How to install the protocol buffer compiler. While not mandatory, gRPC applications often...

How to Install Go on CentOS 7

Go, often referred to as golang is a modern open-source programming language created by Google....

Configure gRPC for go and protoc

Quick start This guide gets you started with gRPC in Go with a simple working example....

Installing Bazel on CentOS 7

Download the corresponding .repo file from Fedora COPR and copy it to /etc/yum.repos.d/....