Hello good people!. Welcome to our guide on how to Install PHP 7.3 on CentOS 7 / Fedora. PHP is a popular server-side scripting language originally created by Rasmus Lerdorf in 1994. PHP is widely used for creating interactive and dynamic web pages. PHP competitors include Microsoft’s ASP.

For Ubuntu use How to install PHP 7.3 on Ubuntu

For Debian: How to Install PHP 7.3 on Debian 9 / Debian 8

Fedora : How to Install PHP 7.3 on Fedora Linux

How To Install PHP 7.3 on CentOS 7 / Fedora

PHP 7.3 release got many bug fixes which include memory segmentation/corruption faults, undefined symbols, and other bug fixes. You can get a detailed report from PHP releases news.

Step 1: Add PHP 7.3 Remi repository

PHP 7.3 is available for CentOS 7 and Fedora distributions from the Remi repository. Add it to your system by running

sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 
sudo yum -y install epel-release yum-utils

Step 2: Disable repo for PHP 5.4

By default, the enabled repository is for PHP 5.4. Disable this repo and enable on for PHP 7.3

sudo yum-config-manager --disable remi-php54
sudo yum-config-manager --enable remi-php73

Step 3: Install PHP 7.3 on CentOS 7 / Fedora

Once the repo has been enabled, install php 7.3 on CentOS 7 or Fedora using the command

sudo yum -y install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json

Check version installed

$ php -v
PHP 7.3.29 (cli) (built: Jun 29 2021 09:30:31) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.29, Copyright (c) 1998-2018 Zend Technologies

I will update this guide once the final release of PHP 7.3 is available for production use.

Step 4: Installing other PHP 7.3 Extensions

Install PHP 7.3 extensions by using the syntax:

sudo yum install php-<entension-name>

As an example, to install a mysql module for PHP applications that use MySQL databases, you’ll run:

sudo yum install php-mysqlnd


$ rpm -qi php-mysqlnd
Name        : php-mysqlnd
Version     : 7.3.29
Release     : 1.el7.remi
Architecture: x86_64
Install Date: Mon 12 Jul 2021 08:27:28 PM UTC
Group       : Development/Languages
Size        : 865068
License     : PHP
Signature   : DSA/SHA1, Tue 29 Jun 2021 10:05:50 AM UTC, Key ID 004e6f4700f97f56
Source RPM  : php-7.3.29-1.el7.remi.src.rpm
Build Date  : Tue 29 Jun 2021 10:04:38 AM UTC
Build Host  : builder.remirepo.net
Relocations : (not relocatable)
Packager    : Remi Collet
Vendor      : Remi's RPM repository <https://rpms.remirepo.net/>
URL         : http://www.php.net/

Enjoy using PHP 7.3 and feel free to report any bugs you encounter to the development team.

PHP Web Programming Video Courses:

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here