Installing PHP 7.3.3 on CentOS 7.6

|
Published:
|
|

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

 

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
koromicha
I am the Co-founder of Kifarunix.com, Linux and the whole FOSS enthusiast, Linux System Admin and a Blue Teamer who loves to share technological tips and hacks with others as a way of sharing knowledge as: "In vain have you acquired knowledge if you have not imparted it to others".

Leave a Comment