PHP upgrade? 7.3 to 8.x

Hello All,

Its been a while that my LibreNMS system has been down, was able to get mostly everything updated,
I can’t find howerver the upgrade method to PHP8…
Any assistance appreicated.

Centos up to 7.9.2009
Version 22.9.0-3-g06c361c - Thu Sep 29 2022 00:32:10 GMT-0400
Database Schema 2022_09_03_091314_update_ports_adsl_table_with_defaults (246)
Web Server Apache/2.4.6 (CentOS) PHP/7.3.33
PHP 7.3.33
Python 3.6.8
Database MariaDB 10.8.8-MariaDB
Laravel 8.83.23
RRDtool 1.4.8

The latest official PHP version for CentOS 7 is probably the one you have. PHP 7.4 and below are no longer supported by the PHP project. It looks like you can get PHP 8.2 from the third party Remi repo:

I’m not sure how trivial it is to upgrade PHP from 7.x to 8.x using a third-party repo but I believe that Remi is considered a respected source.

CentOS 7 itself is EOL in June 2024 and last I checked, upgrades between CentOS releases (e.g 7 → 8) were unsupported, so you might be better just starting with a new OS and migrating your LibreNMS installation over.

The Alma Linux project (one of the RHEL downstream clones) have a script to help you migrate from CentOS 7 to one of the other RHEL/CentOS 8 OSes, including Alma and Rocky Linux, but I don’t know how well it works.

My personal recommendation is to build on Ubuntu then you can upgrade relatively easily between OS releases.

Thanks I appreciate the reference informaiton!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.