FREE TRIAL

Free VPS Trial

Start Free Trial
  • Live Chat
  • +357 2425 0808
  • Login
How To Upgrade PHP to 7.2 on CentOS 7

How To Upgrade PHP to 7.2 on CentOS 7

NetShop ISP

NetShop ISP · Blog Author

Sep 27, 2022 · Tutorials

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

  1. Turn on EPEL repository
    yum install epel-release -y
  2. Turn on REMI repository
    yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y
  3. Install necessary yum utilities package
    yum install yum-utils -y
  4. Enable REMI repo as per your desired php version (in our case 7.2)
    yum-config-manager –enable remi-php72
    yum update -yu
  5. Install PHP 7.2
    yum install php72 -y
  6. Confirm new PHP version
    php -v

Categories

Backup
6
Business Continuity
4
Cloud Hosting
9
Colocation
4
Company Updates
1
Cryptocurrencies
1
Data Centers
12
Dedicated Servers
4
Disaster Recovery
3
Forex
24
Gaming
1
iGaming
33
Industry News
31
Interviews
10
Joomla
9
Magento
5
Managed Services
1
Operating Systems
1
Press Releases
60
Product News
6
Resellers
1
Security
24
Software & Apps
1
Streaming
1
Tech Startups
12
Tutorials
56
Uncategorized
389
Vps Hosting
11
Web Design & Development
3
Web Hosting
43
Webinars
1
Wordpress
14

Free VPS Trial

No Credit Card Required.

Recent Posts

Reflecting on a Year of Growth and Big Investment [CEO Interview at SBC Leaders Magazine]

Reflecting on a Year of Growth and Big Investment [CEO Interview at SBC Leaders Magazine]

25 January, 2023

How To Remove SSH Keys from Linux Server

How To Remove SSH Keys from Linux Server

16 January, 2023

How To Install Language Pack on Windows Server 2019

How To Install Language Pack on Windows Server 2019

30 December, 2022

Ultimate Fintech Awards 2023: NetShop ISP Shortlisted for “Best Connectivity Provider – MEA” Award

Ultimate Fintech Awards 2023: NetShop ISP Shortlisted for “Best Connectivity Provider – MEA” Award

29 December, 2022

Updated Version of myNetShop Client Portal Released: What’s New

Updated Version of myNetShop Client Portal Released: What’s New

27 December, 2022

Products

Bare Metal Dedicated Servers

Virtual Servers (VPS / VDS)

Rack Space & Colocation Hosting

Fast Web Hosting

Cloud Backup

Premium DNS Hosting

Resources

Blog

Videos

Events

APIConnect

WhitepapersNew

Looking Glass

Company

About Us

CareersNew

Awards & Honours

Become a hosting Partner of NetShop ISP

Contact Us

#letushostyou

Award Winning Hosting Provider with a Customer-centric approach to Business and an Open Source Mindset regarding Solutions and Products Development.

Est. 2004, Larnaca – Cyprus


About

Legal Address: 2A, Marathonos, Livadhia, 7060, Cyprus

Operations Office: 120, Faneromenis Avenue, Imperial Tower, 2nd Floor, Larnaca, 6031, Cyprus

Company Reg: HE 217340
EU VAT Number: CY10217340J
ISO 9001:2015: No. QS.21.038

International Phone: +357 2425 0808