Install PHP 7.3 on centos 7

In this tutorial, How to install PHP 7.3 on centos 7. In CentOS 7 the default version PHP is 5.4 but Install PHP 7.3 with RPM package if you need.

The first, You need to install Remi’s Repository on Centos.

Install PHP 7.3 on Centos 7

[vagrant@DevopsRoles ~]# yum --enablerepo=remi-safe -y install php73 php73-php-pear php73-php-mbstring

Configure PHP 7.3 automatically at login time.

[vagrant@DevopsRoles ~]# vi /etc/profile.d/
# create new php73.php file

source /opt/remi/php73/enable
export X_SCLS="`scl enable php73 'echo $X_SCLS'`"


If you need to use PHP 7.3 for Apache and Nginx.

[vagrant@DevopsRoles ~]# yum --enablerepo=remi-safe -y install php73-php-fpm php73-php

You have installed PHP 7.3 on CentOS/RHEL đŸ™‚

, ,

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.