How upgrade PHP 8.1 to 8.2 or 8.3 using ondrej repository on ubuntu 22
Las update: 25-October-2024
In this article we will upgrade from PHP 8.1 to PHP 8.1 using ondrej repository.
This just work with ondrej repository, for more informaction about this repository
If you have installed PHP 8.1 you will need install additional PHP 8.2 for upgrade after using a command. This work for apache on linux.
Please note that you have to add each version of PHP as you need it, you can have as many versions as they are released, as of the date this article was written (October 2024) the latest version is 8.3.
Follow this steps.
Install PHP 8.2
Install modulos for PHP 8.2.
Please change all the places where it says "8.2" to the version you want to install, this can be "8.1" or "8.2" or "8.3" and so on depending on the existing versions at the moment.
Switch between PHP versions on ubuntu
You can switch between version, for this example you need has installed one or more version of PHP.
You will see this screen.
In this case I have installed two versions php8.1 and php8.2, you can select ther version that you wish writing the number and key enter.
References.
https://www.thedataops.org/how-to-upgrade-php-version-from-8-1-to-8-2-in-ubuntu/
Comments
Post a Comment