Hello,
I see LibreNMS notification that PHP version 8.2 is the minimum supported version as of October, 2024 to continue receiving updates.
I am running LibreNMS on Ubuntu 22.04 with PHP 8.1 and nginx.
I hope there will be someone in my situation or who can advise is this the right way to upgrade PHP 8.1 to 8.2:
I am planning to upgrade php itself following some guide, I liked this one:
After that to copy this librenms.conf:
cp /etc/php/8.1/fpm/pool.d/librenms.conf /etc/php/8.2/fpm/pool.d/librenms.conf
After that to restart php, nginx or the whole server.
systemctl restart php8.2-fpm
systemctl restart nginx
I hope for some advices if this is supposed to work or I need to do something more or other way.
Thank you.
You might find this thread helpful. I recently upgraded an Ubuntu 22.04 based installation from 8.1 to 8.3, and the instructions from that post worked for me.
1 Like
Everything should be fine with linked guide. I used to update php on Ubuntu and Debian using this PPA without any problems
1 Like
If you don’t have any compelling requirement to stay on Ubuntu 22.04, you might just want to upgrade the entire system to 24.04 (which is also a “LTS” release). Ubuntu 24.04 includes PHP 8.3, which satisfies the “minimum 8.2” requirement.
do-release-upgrade
on Ubuntu should make this pretty straightforward… You may still have to do some minor cleanup of config files or other settings (pointing them to 8.3 instead of 8.1), but this way your entire server will be on the newest “long-term” release of Ubuntu.
2 Likes