CentOS 7 is the oldest RHEL-based OS distribution that is currently maintained (end of maintenance updates will be on 30th of June 2024). It’s initial launch was in July 2014 and since then it has been used for millions of server-side installations.
There are many system admins and developers out there whose applications requiring to be updated whilst remaining on CentOS 7. In this article we will explain the easiest way to upgrade PHP to 7.2 on a CentOS 7 server.
Pre-requisites
- CentOS 7 Server with Internet Connection
- Root access on Server
Steps to Upgrade PHP to 7.2 on CentOS
- Turn on EPEL repository
yum install epel-release -y - Turn on REMI repository
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y - Install necessary yum utilities package
yum install yum-utils -y - Enable REMI repo as per your desired php version (in our case 7.2)
yum-config-manager –enable remi-php72
yum update -yu - Install PHP 7.2
yum install php72 -y - Confirm new PHP version
php -v
Mastering the Forex Market: Unleashing the Power of Dedicated Servers for MT5 Hosting
Dedicated Servers in 2025: Why Businesses Are Moving Back
NetShop ISP Expands Global Reach with PoP VPS Solution
MT5 Access Server for Forex Brokers: Virtual vs. Dedicated
6 Reasons Why Your WordPress Website Is Slow And How to Fix It
How To Setup DKIM and SPF Records on cPanel (Jupiter theme)
5 Advantages of Colocation Vs. On Premise Hosting
All You Need to Know about Data Center Reliability Levels (Tiers)
XConnect: Ultra‑Low Latency Connectivity Now Delivered Globally
Cloud Hosting Trends 2025: Bare Metal, Hybrid Cloud & Web3 Hosting
Introducing Hybrid & Workload-based Cloud Backup Solutions
How can Forex Brokers be Protected from DDoS Attacks






