Installing PHP 7.3.3 on CentOS 7.6

0
14048

In this tutorial, we are going to learn about installing PHP 7.3.3 on CentOS 7.6. The PHP development team has announced the availability of PHP 7.3.3. This is a security release of the more stable version of PHP. The release has addressed a handful of bugs. You can check these fixes on the ChangeLog.

Our previous guide describes installation of PHP 7.3.3 on Ubuntu 18.04.

Installing PHP 7.3.3 on CentOS 7.6

Install EPEL Repository

To install the latest PHP 7.3.3 on CentOS 7.6, you need to first install EPEL repositories.

yum install epel-release

Install Remi Repository

Remi is a third party repository that provides the latest versions of PHP.

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

Disable Remi PHP 5.4 repository

By default, the repository for PHP 5.4 is enabled and hence, to install the latest version of PHP, you need to disable this repo. The repositories can be enabled or disabled using the yum-config-manager command. This command is provided with the yum-utils package.

yum install -y yum-utils
yum-config-manager --disable remi-php54

Enable Remi PHP 7.3 repository

To enable Remi PHP 7.3 repository, run the command below.

yum-config-manager --enable remi-php73

Installing PHP 7.3.3 on CentOS 7.6

Now that we got the repositories to power this process, you can now install PHP 7.3.3 on CentOS 7.6.

yum install php

Once the installation, check the version by executing the command below;

php -v
PHP 7.3.3 (cli) (built: Mar  5 2019 13:50:38) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.3, Copyright (c) 1998-2018 Zend Technologies

If you need to install PHP extensions, you can search and install  them by running the command below;

yum list php-*
yum install php-<extension_name>

Well, that is it about installing PHP 7.3.3 on CentOS 7.6. We hope this was informative. Enjoy

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here