Impact-Site-Verification: d8d8859d-7548-47cd-9205-db15dd001e65

Last Updated on 5 years by Sachin G

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

Features of PHP 7 

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 Remi Repository

For Configure REMI 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 remi package list , you can  check through below command .

# yum list php7*

OR

# yum search php7*

STEP 3 : Install latest php package

Find 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 CentOS 8

STEP 4 : Verify PHP Version

[root@server1]# 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