DEV Community

Cover image for How to Update PHP in Linux to any version

How to Update PHP in Linux to any version

Antonio Silva on January 13, 2024

Over time, PHP releases a new version, making the previous ones obsolete. This means that they no longer receive updates or security patches, makin...
Collapse
 
dogers profile image
Dogers

In Debian/Ubuntu, anyway :)

Collapse
 
xtreme2020 profile image
José Francisco

Super important info before any upgrade, check your code compatibility, test in your staging site or local environment the version you are going to upgrade, to avoid down time, also if you are using NGINX with PHP-FPM, there is an extra step to do and that is change your site config file to PHP-FPM version you upgrade and restart the service...

Collapse
 
xxzeroxx profile image
Antonio Silva

Thank you for the information

Collapse
 
dev-alamin profile image
Al Amin

Helpful post. Liked it.

Collapse
 
xxzeroxx profile image
Antonio Silva

I'm glad you found it helpful.