PHP 7 installation through Yum Repo on Centos or RHEL and Fedora

In January 2016, released new latest version of PHP. This Version comes with new Zend Engine and lots of new features. Here in this articles , I will show you php 7 installation  via repository . Now will use in php editor new version of version and provide good functionality for clients.

Features of  

Here are some features of PHP 7 , which makes php 7 is different from older version .

  • PHP 7 is twice faster than PHP 5.6 Version.
  • Return and Scaler Type Declarations
  • Anonymous function support
  • 64-bit support
  • Fatal errors are now change as Exceptions
  • Removal of old and unsupported SAPIs and extensions
  • The null coalesce operator (??)

STEP 1: Configure Repository

For Configure Repository on your Server operating system , you can follow in below link for installation of remi repo.

Install Remi Repository on CentOs or Red Hat / Fedora

After installation of this repositories on your server then we will go through on our next steps to install php 7 Version and its module installation , if needed.

STEP 2 : Search PHP Packages

PHP 7 available in package list , you can  check through below command .

# yum list php7*


# yum search php7*

STEP 3 : Install latest php package

the latest php package and install it on the system. you can filter other php related software and install it according to your need.
# yum install php74 -y
PHP 7 Version On 8

STEP 4 : Verify PHP Version

[[email protected]]# php74 -v
PHP 7.4.4 (cli) (built: Mar 17 2020 10:40:21) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies


About Sachin Gupta

I am a professional freelance contributor and founder of tech transit. Love to write and lover of education, culture, and community. I have been using it, setting, supporting, and maintaining it since 2009.Linux rocks!

Have any Question or Comment?

Leave a Reply

Your email address will not be published.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.